

You just need to type a keyword related to the command and find it, instead of navigating menus after menus. Search files If you ever want to search for a piece of text in all your current project files, VS Code allows you to do that by either clicking the Search icon on the sidebar or by using the following keyboard shortcut: Windows: Ctrl+Shift+F Mac: cmd+Shift+F 4. Windows: CTRL+SHIFT+P Mac: CMD+SHIFT+P With the help of a command palette, you can access your commands according to your current context. Then COMMAND + DOUBLE CLICK (to select), then COMMAND + V to pasteĬOMMAND + OPTION + LEFT ARROW -or- RIGHT ARROWĪnd thats that! Hopefully this list introduced you to something that you can incorporate into your daily use of VS Code to increase your productivity. Windows: Ctrl+Shift+P Mac: cmd+Shift+P Command Palette 3. For example, you can find commands for solutionexplorer. In the Show commands containing box, enter all or part of the name of the command without spaces. Move Line of Code (or selection of code) Up or DownĬOMMAND + DOUBLE CLICK (to select), then COMMAND + C to copy, Expand Environment, and then choose Keyboard. Place Multiple Cursors Up and/or Down From Current LineĬOMMAND + OPTION + UP ARROW -or- DOWN ARROWĩ. (To exit any multi-cursor mode, just press ESCAPE)Ĩ. Select Each Occurrence of a Word, One by One

Select Everything to Left or Right of CursorĬOMMAND + SHIFT + LEFT ARROW -or- RIGHT ARROWĥ. Useful VS Code Keyboard Shortcuts These keyboard shortcuts are what I find most useful when working in VS Code. OPTION + SHIFT + LEFT ARROW -or- RIGHT ARROWĤ.

The shortcut keys are specific to Mac, but they should be fairly similar on Windows. While customizing your VS Code with a nice (hopefully dark) theme and handy extensions can make the experience a whole lot better for you, I'm here to share a few of my most used keyboard shortcuts / tricks to hopefully make your stay in VS Code a little bit better, while also helping you increase your productivity. General Shortcuts Ctrl+Shift+P, F1, Show Command Palette Ctrl+P Quick Open, Go to File Ctrl+Shift+N New window Ctrl+Shift+W Close window Ctrl+, User. Others + Letters Ctrl + Shift + M Toggles the Command Window Ctrl + Shift + N Creates a new project Ctrl + Shift + P Plays back a recorded macro Ctrl +.
