📜 ⬆️ ⬇️

9 more tricks to work with Visual Studio

More recently, we talked about 18 tricks to work with Visual Studio. Today we have selected 9 more tips that will help increase the productivity of your work with the tool.

1. Want to return to the last edited line of code? Try Ctrl + Shift + Bkspce to go to the last editing place.

2. Easily move the instruction pointer (yellow arrow) during debugging with Set Next Statement.
')
image

3. Use Ctrl + Shift + F12 to go to the source of the next error, which is listed in the Error List.

4. To select all occurrences of the selected word, press Ctrl + Shift + semicolon to use support for multiple insertion points in order to make them all synchronously selected and editable.

5. Be careful when switching the CancellationToken to JTF.SwitchToMainThreadAsync (). Contrary to intuition, this is not the cancellation of the entire task, but the cancellation of the switch ... so that the code will continue to work in the background.

6. Do you know that Visual Studio works with Surface Dial? Use the free Surface Dial Tools extension to easily navigate through bookmarks, errors, debugging, zooming and much more.

image

7. Make Visual Studio do the garbage collection yourself by pressing Ctrl + Shift + Alt + F12 twice.

8. Search for code snippets in Visual Studio using Developer Assistant



9.Where is my file? ". By default, the file path for Visual Studio projects is very long. If you want to access a subfolder or file in a project from Windows Explorer or specify the path to the file in your code, then you can move up and down folders for a long time, trying to find the location of the desired file. Did you know that you can simply right-click a tab in the code editor window to open the file path or open a folder in Windows Explorer? Check this.



Finally


These were just a few more tips from Channel 9, as well as those posted on the #vstip hashtag on Twitter. There are still many tips worthy of attention. Also, if you have great tips, please share them with the hashtag #vstip.

The tips are taken from the @mkristensen and @chgunderman pages on Twitter, as well as on Channel 9 .

Source: https://habr.com/ru/post/459936/


All Articles