Ctrl+K+C, Ctrl+K+U and Ctrl+/ are exactly works like each other in this case (for me). Also works for browser-based VSCode IDEs. For some languages, CSS for example, Ctrl+K, Ctrl+C work as toggle for both states. Install the Codeium extension in Visual Studio Code, and start seeing suggestions as you write comments and code. Even if a line is partly selected, the comment mark is inserted in the beginning of this line.Īn alternative way to uncomment any line comment is to place the caret at this line, press Alt+Enter and choose Uncomment. The alternative shortcut to comment code is Ctrl+K, Ctrl+C, and for uncommenting its Ctrl+K, Ctrl+U. If there is a selection, ReSharper will comment or uncomment all the lines that the selection spans. You can configure this option for different languages separately, for example, for C# it is on the Code Editing | C# | Formatting Style | Tabs, Indents, Alignment page of ReSharper options ( Alt+R, O ). This includes actions and settings that dont have keyboard shortcuts. Ctrl+K Ctrl+C Add line comment Ctrl+K Ctrl+U Remove line comment Ctrl+/ Toggle line comment Shift+Alt+A Toggle block comment Alt+Z Toggle word wrap Navigation Ctrl+T Show all Symbols Ctrl+G Go to Line. For some languages, CSS for example, Ctrl+K, Ctrl+C work as toggle for both states. If there is no selection, ReSharper will comment the current line, or uncomment if the line is commented, and moves the caret to the next line.Īccording to the Don't indent comments started at first column option, the comment will be added with or without the indent. Ctrl+K Ctrl+S Keyboard Shortcuts Basic editing Ctrl+X Cut line (empty selection) Ctrl+C Copy line (empty selection) Alt+ / Move line up/down. Quick actions allow you to update settings and perform actions, using just your keyboard. The alternative shortcut to comment code is Ctrl+K, Ctrl+C, and for uncommenting it's Ctrl+K, Ctrl+U.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |