30 Tips for Visual Studio 2019 Community version

basements
basements
1.2 هزار بار بازدید - 5 سال پیش - 1. Add new file by
1. Add new file by Mads Kristensen
Adds a shortcut (shift + f2) that allows you to add files and folders faster through input window.

2. Intellicode
Add recommendations to class methods. Some workloads will have this extension included, some has it as optional. It can be downloaded as a extensions for VS 2019, or VS 2017 version 15.8 and newer.

3. ctrl + space shows arguments
Completes the possible arguments or shows a list of possible ones

4. Code Maid
Ability to clean the the whole solution

5. Code cleanup
set multiple profiles with different cleaning settings. Some of the features are similar to Code maid, making it more and more useless as this is built in. Can't clean the whole solution.

6. Visual Studio Spell Checker
Spell checker for comments and strings

7. C# Methods Code Snippets (Talked in the Snipped part)
Adds code snippets for methods

8. Code snippets
Ability to use commands such as cw, prop, fullprop, ctor + tab + tab.
Creates a code, for example, cw command will create console.WriteLine() statement.

9. Task list
Use comment with a speciic text in order to create items in the task list and view them later
e.g. // todo fix this

10. Bookmarks
Add bookmarks to code line and view them later

11. Live Share
let's you share the project for others to view or modify, even if they have different development environment. Can be used with VS 2017 as well, but need to install the extension. Quite useful for demonstration and co-programming

12. Format document
This can be done from view - advanced - format document (ctrl + K, ctrl + D). This will make the code pretty again.

13. ctrl + tab will let you navigate easily between active files and tools.
Reverse order ctrl + shift + tab
If you open it with alt+f7 or alt + shift + f7 , the tools will be opened.

14. alt + arrowkeys let you move one line either up or down.

15. alt + shift let you pick multiple line for cursor, so you can write to multiple lines at the same time.

16. Copy and paste multiple items at once.
Use the normal (ctrl + c) for copying
Paste the item with (ctrl + shift + v)

17. Load only part of the projects in the solution with these steps:
Unload the unwanted projects
Save the current state from the solution - safe as solution filter.
Open the created .snlf file directly and it will only load the wanted projects. This might have significant impact on the loading time.

18. Set temporary break point with ctrl + f10. This will stop at the line of the cursor. Can be set manually by left click - run to cursor.

19. Add datatip to a variable.
After the debug is over, you can view the last known value for that datatype.

20. Debugging actions
Instead of normal breakpoints, you can set actions and view the result without actually stopping to any of any breakpoint.

21. Debuggind conditions
Set conditions to breakpoint, so it will not stop every time, but only when the condtions are met.

22. Debugging result will be shown in the debug window

23. Immediate window let us define commands there as well.
You can pretty easily check specific values by using the variables that are usable at the moment. May be faster for checking stuff out, especially if you don't need to save the variable.

24. From the debugger window you can disable/enable all breakpoints at the same time, delete them

25. You can set new breakpoint from the breakpoints window.
You can use method name and add breakpoint to all methods with a same name.
e.g if you set a breakpoint to method called Get, every method will have a breakpoint.
Narrow down the result with a class or namespace definition.

27. Reading the call stack.
In the call stack window you can keep track on where you came from.

28. Debugging shortcuts:
shift +f5 will stop debugging.
F10 step over
F11 step into
Shift + F11 Step put

29. Import and export breakpoints from xml file.
In case you want to share the breakpoints, export the xml file

30. Search window Ctrl + Q let you find commands.

31. Snl runner
Allows you to find all .snl files from the directory.
5 سال پیش در تاریخ 1398/07/29 منتشر شده است.
1,292 بـار بازدید شده
... بیشتر