How to disable rename property preview in VS 2019 - visual-studio-2019

After the last update (current version is 16.8.3) when I attempt to rename a variable I get blocked by a loading icon that ends up displaying usings of the current variable.
I don't mind keeping that feature on, the thing is sometimes it takes around 1-2 seconds for the loading icon to go, and only then I can proceed with the renaming.
It feels forever really when you are doing a refactor to code where sometimes lots of renamings are performed.
To keep it short, the loading icon is blocking renaming when using the mouse.
Any way I can switch off that feature?

Go to Tools -> Options -> Text Editor -> C# -> Advanced
and uncheck "Show preview for rename tracking". in Editor Help options group.

In VS 2022 you must use the checkbox in the rename options (upper right corner after pressing f2 or ctrl+r, ctrl+r on an identifier):
rename, preview changes

Related

How to Start without Debugging (CTRL+F5) with just one finger instead of using two in Visual Studio 2019?

The Start Without Debugging option is great for quick checks. The ease of the F5 button loads it with the debugger but it takes a lot of time everytime it runs.
Is it possible to switch F5 and CTRL+F5 around, so by pressing only F5 it Starts Without Debugging instead of Start Debugging?
Tools -> Options
Environment -> Keyboard
Filter list with 'Debug.Start'
Choose Remove 'Shortcuts for selected commands:' for both Debug.StartWithoutDebugging and Debug.Start
Assign both with reversed commands.
Screenshot for final step of assiging F5 to Debug.StartWithoutDebugging:
The reverted keyboard shortcuts are then also shown in the menu:
Change the configuration from Debug to Release

Is there a way to make Visual Studio only offer relevant names?

Currently when I press Ctrl+Space while having the cursor in the function parentheses Visual Studio Intellisense offers me everything it can possibly think of. Is there a way to restrict these names to names that make sense for that specific function / parameters / context?
I can click on the little button "Variables and Constants" which helps somewhat but I have to click on that every time this list is invoked.
(If I remember correctly Eclipse first offered only the relevant names/variables for the current context, then pressing Ctrl+Space again offered a wider range of names.)
VS has the feature to give priority to variables, parameters, methods(mixed types) according to your current block domain rather than simply provide a single type.
So I think there is some problems with your environment, please try these:
1) disable any third party extensions under Extensions-->Manage Extensions-->Installed to check if there is an extension causing that.
2) reset vs settings under Tools-->Import and Export Settings-->Reset all settings
3) close VS, delete C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\16.0_xxx\ComponentModelCache folder
Also, delete .vs hidden folder under your solution folder, bin and obj folder.
restart VS to test again.
4) repair vs or update it if there is a new release version.

How to view/compare a file's history in Delphi?

The title says it all. I made some changes & closed/re-opened Delphi, so I Can't use Ctrl-Z to undo my changes.
How do I compare the current file with previous versions?
For code only, if you don't have a version control system installed, you can view recent changes by using the History tab at the bottom of the code editor window, and then click the Differences tab. How far back you can go depends on how you've configured it; the default is 10 revisions. You can change the default in Tools->Options->Editor Options->File backup limit.
In the absence of any other revision control system there is a History tab in the code editor window - from there you can view a side-by-side diff with previous saved versions by using the Differences tab.
If you installed BeyondCompare with XE8 then you can also access a revision history of your files by selecting (with the file of interest open in the IDE)
Edit -> Compare -> History Compare...
This will present you with a list of saved revisions. Select one and click the Show Diff... button to present a side-by-side comparison.
Going forward, I would seriously consider using dedicated revision control. Commit often and this type of situation should never be a problem for you.
if you have a version control system then use this.
else: if you use Win7 then right-click the file, choose properties and see "older versions". You have to have enabled this Win feature beforehand...
else: your previous versions are lost

Xcode rebuild on changes`

How can I make Xcode automatically build when I save changes to a file?
I may have to stop developing for apple if I need to hit that stupid play button/ reach for a mouse one more time.
I am so desperate that I have even considered using Java.robots to click the screen for me on git commits
Look at Jenkins - This does exactly what you want. It's a bit of a faff to get it set up the first time, but it will save you hours in the long term.
You can build without running by hitting (CMD+B) by default. The default behavior of the IDE is to save modified files upon build, so if you just want to save and build all the time, just hit build, and it will do both for you.
You can even modify the shortcut key for build to be cmd+s if you really want to by opening up XCode preferences (Cmd+, by default, or going to the "XCode" menu in the top left and selecting preferences), and go to the keybindings section and change the "Build" action keybinding to be cmd+s

Find shelvesets via Visual Studio as quickly as possible

I need to review many shelvesets using Visual Studio every day. I have added the TfsPendingChanges command to the my toolbar, but the rest of the procedure to access a shelveset (Actions/Find Shelvesets) still feels clumsy. In fact, shelveset review has nothing to do with my own pending changes. And VS11 just made it even one step longer than it already was.
Is there any way to add "Find Shelvesets" in some form directly to a menu or to a toolbar, in Visual Studio 2012?
If you go to right click and then "Customize" on any toolbar, it will bring up a dialog. Press the "Keyboard" button on it, choose File.TfsUnShelvePendingChanges and assign a Hot Key to it. I do believe that the Source Control Explorer window needs to be open and active for your hot key to work.
OR...This may not be exactly what you are looking for, but if you have the Source Control Explorer window open and active, then ALT-F ALT-R ALT-F ALT-F ALT-S will bring up the dialog. That is actually navigating File/Source Control/Find/Find Shelvesets.
The easiest way to work with Shelvesets is to use the new My Work feature. By suspending and resuming work Visual Studio will automatically do all the Shelveset magic for you with a simple drag/drop of the task that you want to have in progress.
The same applies to reviews, Suspend your current work, or create a new temporary workspace, open the Review Request, let it unshelve the changes automatically and when you're done go back to where you were by resuming your previous tasks.
It's really great once you get the hang of it. That it uses Shelvesets under the hood is nice to know, but this way you don't really need to know, it just works.
As for TWA Diff, there've been great improvements with TFS 2012 Update 2 which is almost ready to be released...
If this is only for reviews then maybe Team Web Access would be better for you?
Just navigate to http://:8080/tfs/web/, select team project, then click Source Tab and Find Shelvesets. You can then open each shelveset in new browser window and it will list all changes and allows you to quickly do compare etc.
Command that you are looking for is TfsUnshelvePendingChanges under File.
Right click on any toolbar, click on customize and a dialog will open. Go to 'Commands' tab on the top.
Choose appropriate button out of Menu Bar | Toolbar | Context Menu. Select the desired option under that. My favorite is to add it to Toolbar>Work Item Tracing (toolbar where New Item/Open Item appears).
After choosing from above step appropriately, click on 'New Command'. Then select to File>TfsUnShelvePendingChanges. This will add a shortcut to unshelve changes.
Thanks to #Alex for pointing out the correct command name. Writing here separately for people looking for answers in future.

Resources