![visual studio shortcuts auto comment visual studio shortcuts auto comment](https://csharpcorner-mindcrackerinc.netdna-ssl.com/article/visual-studio-keyboard-shortcut-and-productivity-tips/Images/shortcut.png)
Below are the activeline effect, notice how it's different from the screenshot above. Specify if it use the indentation of the firstline or the line under the cursor. Original codeĪlignment.indentBase : "firstline" | "activeline" | "dontchange"
Visual studio shortcuts auto comment code#
Select the piece of code that you would like to comment on. Shortcut key for comment in Visual Studio 2019. Besides the comment and uncomment button in Visual Studio toolbar, you can also use the keyboard shortcuts to perform the same actions. Specify how assignment operator will be aligned. Shortcut key for comment and uncomment in Visual Studio 2019.
![visual studio shortcuts auto comment visual studio shortcuts auto comment](https://i.ytimg.com/vi/uFtGdxgqVEk/maxresdefault.jpg)
Then the code will be automatically aligned. Place your cursor at where you want your code to be aligned, and invoke the Align command via Command Palette or customized shortcut. It has additional support for comma-first coding style and trailing comment.Īnd it doesn't require you to select what to be aligned, the extension will figure it out by itself. Develop with our code editor or IDE anywhere for free. Align your code by colon( :), assignment( =, +=, -=, *=, /=) and arrow( =>). Visual Studio dev tools & services make app development easy for any developer, on any platform & language.