
You can move the current line one position down with SHIFT + ALT + T. Sometimes you may need to change the order of some lines (such as the order of some variable declaration, or order of properties defined in a JSON file). CTRL + K followed by CTRL + U to uncomment.CTRL + K followed by CTRL + C to comment.It is possible to comment or uncomment the current line or selection with the following key combinations: Īnother way is to insert multiple carets at desired locations by pressing CTRL + ALT and clicking with the mouse cursor. the next match of a token, with SHIFT + ALT +.all matches of a token, with SHIFT + ALT +.One way is to insert a caret automatically to: This is possible by using multiple carets. Sometimes you may need to make similar changes in multiple places. For instance, here is an example with replacing -> with a dot. This is useful when you have code vertically aligned and need to make some repetitive changes.

You can perform vertical selection (of columns) by either pressing the ALT key and using the mouse to select, or pressing SHIFT + ALT and using the arrow keys to select. In this post, I will share several that I find very useful and I use quite often. To avoid that frustration, GhostDoc allows you to edit documentation in WYSIWYG fashion, with the changes persisted back to the XML documentation in your code.The Visual Studio editor has lots of functionalities, many of them available with the use of shortcuts.

Have you ever generated help documentation from comments, only to find that the end result is poorly formatted? Text running awkwardly onto separate lines, or garbled text caused by an omitted escape character? It's a frustrating, time-consuming experience to regenerate it until it looks right.Īs software developers, we deal with that enough, compiling and running applications only to see that some GUI component is out of whack. The strict nature of the XML makes it much too easy to break the formatting, and miss the required escaping for symbols.

XML Comments are powerful for code documentation.
