Yes, you can type on multiple lines at once using Visual Studio, here is the shortcut of this : Shift + Alt + ↑ / ↓ (use up arrow to select upper code lines from current selected line, and down arraow to select lower code lines) You can use " Ctrl+K, Ctrl+U" to uncomment the selected code Edit Multiple Lines at Once You can simply use "Ctrl+K+C" to comment the current line of code or selected code. Take a look the below image, which shows how code is commented and then uncommented using Visual Studio keyboard shortcuts " Ctrl-K, Ctrl-C", to comment out the current selected lines If you are working with Visual Studio from quite some time, then you must have seen there is "+" ( when code is collapsed) and "-" ( when code is alread expanded) sign, in your code which let's you expand or collapse your classes/methods code, you can collapse all the regions of the file by clicking " Ctrl+M, Ctrl+O" in Visual Studio. Visual Studio is one of the best IDE for software developers and mostly preferred by C#.NET developers, so in this article, I have provided useful shortcuts to be used in Visual Studio like comments shortcut, collapse or expand code region etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |