enterprisebas.blogg.se

Visual studio code comment shortcut mac
Visual studio code comment shortcut mac








Ctrl+K+CĬtrl+K+U shift+alt+A //Toggles comments in VScode. If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Example 2: shortcut comment visual studio Comment Code Block … ctrl+k+c Will comment out the selected chunk of code in VS Code. ' in any folder to start editing files in that folder. Restart the terminal for the new PATH value to take effect. Shortcut to comment out code in visual studio code exampleĮxample 1: visual studio comment out block ctrl+k+c Will comment out the selected chunk of code in VS Code. Open the Command Palette ( Cmd+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command. Use the cmd + / key binding on the selected code. File -> Preferences -> Keyboard Shortcuts -> Search for 'line comment'. They works with German layout and I can change it to whatever I want using. To comment out an entire block of code: Select the code and select Toggle Line Comment (s) from the context menu. I dont know if it somehow related to my installation, but my vscode uses by default following shortcuts: Ctrl-K + Ctrl-C - comment Ctrl-K + Ctrl-U - uncomment. Shortcut to comment out code in visual studio code example.










Visual studio code comment shortcut mac