Text of code.visualstudio.com › docs › editing › getting-started › tips-and-tricks as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

Visual Studio Code tips and tricks

AI agents: See llms.txt for documentation discovery and navigation. Documentation articles are also available as Markdown by appending .md to the article URL. Join VS Code at Microsoft Ignite or catch the sessions online. A year of VS Code, wrapped. Explore the highlights. Visual Studio Code tips and tricks View as Markdown Ask in VS Code Ask in VS Code Insiders Use the tips and tricks in this article to jump right in and learn how to be productive with Visual Studio Code.

Become familiar with the powerful editing, code intelligence, and source code control features and learn useful keyboard shortcuts. Make sure to explore the other in-depth topics in Getting Started and the User Guide to learn more. If you're just getting started, make sure to check out the VS Code tutorial for a step-by-step to discover the key features. If you don't have Visual Studio Code installed, go to the Download page.

You can find platform specific setup instructions at Running VS Code on Linux , macOS , and Windows . Prefer a video? You can watch the VS Code Day talks Visual Studio Code tips and tricks or Elevate your VS Code experience . Basics Getting started The best way of exploring VS Code hands-on is to open the Welcome page and then pick a Walkthrough for a self-guided tour through the setup steps, features, and deeper customizations that VS Code offers.

As you discover and learn, the walkthroughs track your progress. Open the Welcome page from the Help > Welcome menu or use the Help: Welcome command from the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P ) ). Extensions can also contribute walkthroughs. You can also directly open a walkthrough by using the Help: Open Walkthrough... command from the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P ) ). If you are looking to improve your code editing skills, open the Interactive Editor Playground .

Try out VS Code's code editing features , like multi-cursor editing, IntelliSense , Snippets, Emmet , and more. Open the Welcome page from the Help > Editor Playground menu or use the Help: Interactive Editor Playground command from the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P ) ). Command Palette Access all available commands based on your current context. Keyboard Shortcut: ⇧⌘P (Windows, Linux Ctrl+Shift+P ) Tip You can move the Command Palette to another location by grabbing the top edge with the mouse cursor and dragging it somewhere else.

You can also select the Customize Layout control in the title bar, and then select one of the preconfigured Quick Input Positions . Default keyboard shortcuts Many of the commands in the Command Palette have default keyboard shortcuts associated with them. You can see the default keyboard shortcut alongside the command in the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P ) ). Keyboard reference sheets Download the keyboard shortcut reference sheet for your platform ( macOS , Windows , Linux ).

Floating windows You can open an editor, the terminal, or specific views in a floating window, for example to move the editor to another place on your monitor or even to another monitor. Drag an editor tab out of the current VS Code window to open it in a floating window. Alternatively, use the Move into New Window or Copy into New Window context options from the editor tab. Integrated terminal Keyboard Shortcut: ⌃` (Windows, Linux Ctrl+` ) You can select another terminal shell from the dropdown.

Depending on your operating system and system configuration, you might see different shells listed. Further reading: Integrated Terminal documentation Mastering VS Code's Terminal article Toggle Sidebar Keyboard Shortcut: ⌘B (Windows, Linux Ctrl+B ) Toggle Panel Keyboard Shortcut: ⌘J (Windows, Linux Ctrl+J ) Zen mode Enter distraction-free Zen mode. Keyboard Shortcut: ⌘K Z (Windows, Linux Ctrl+K Z ) Press Esc twice to exit Zen Mode.

Command line VS Code has a powerful command line interface (CLI) which enables you to customize how the editor is launched to support various scenarios. For example, you can start VS Code from the command line to open a diff editor for comparing two files. Make sure the VS Code binary is on your path so you can simply type 'code' to launch VS Code. See the platform specific setup topics if VS Code is added to your environment path during installation ( Running VS Code on Linux , macOS , Windows ). # open code with current directory code . # open the current directory in the most recently used code window code -r . # create a new window code -n # change the language code --locale=es # open diff editor code --diff < file 1> < file 2> # open file at specific line and column <file:line[:character]> code --goto package.json:10:5 # see help options code --help # disable all extensions code --disable-extensions . .vscode folder Workspace-specific configuration files are in a .vscode folder at the root of your workspace.

For example, tasks.json for the Task Runner and launch.json for the debugger . Status Bar Errors and warnings Keyboard Shortcut: ⇧⌘M (Windows, Linux Ctrl+Shift+M ) Quickly jump to errors and warnings in the project. Cycle through errors with F8 or ⇧F8 (Windows, Linux Shift+F8 ) You can filter problem list either by type ('info', 'errors', 'warnings') or by matching text. Change language mode The language mode in the Status Bar indicates the language (for example, Markdown, Python, and more) that is associated with the active editor.

You can change the language mode for the current editor by selecting the Status Bar language mode indicator, or by using the keyboard shortcut. Keyboard Shortcut: ⌘K M (Windows, Linux Ctrl+K M ) If you want to persist the new language mode for a file type, use the Configure File Association for command to associate the current file extension with an installed language. Customization There are many options to customize VS Code to meet your preferences: Change your theme Change your keyboard shortcuts Tune your settings Add JSON validation Create snippets Install extensions Change your theme VS Code comes with a number of built-in color themes .

Use the Preferences: Color Theme command or use the keyboard shortcut. Keyboard Shortcut: ⌘K ⌘T (Windows, Linux Ctrl+K Ctrl+T ) You can install more themes from the VS Code extension Marketplace . Select the Preferences: Color Theme > + Browse Additional Color Themes... command to search themes from the Marketplace. Additionally, you can install and change your File Icon themes. Keymaps Are you used to keyboard shortcuts from another editor?

You can install a Keymap extension that brings the keyboard shortcuts from your favorite editor to VS Code. Use the Preferences: Keymaps command to see the current list on the Visual Studio Marketplace . Some of the more popular keymaps are: Vim Sublime Text Keymap Emacs Keymap Atom Keymap Brackets Keymap Eclipse Keymap Visual Studio Keymap Customize your keyboard shortcuts You can view and customize the keyboard shortcuts in the Keyboard Shortcuts editor.

Use the Preferences: Open Keyboard Shortcuts command or use the shortcut to open the editor. Keyboard Shortcut: ⌘K ⌘S (Windows, Linux Ctrl+K Ctrl+S ) Select the pencil icon or use Enter on a specific entry to edit the keyboard shortcut. Filter the list by using the search field. You can also search for shortcuts and add your own keyboard shortcuts to the keybindings.json file. See more in Key Bindings for Visual Studio Code .

Tune your settings By default, VS Code shows the Settings editor to view and edit settings. You can also edit the underlying settings.json file by using the Open User Settings (JSON) command or by changing your default settings editor with the workbench.settings.editor Open in VS Code Open in VS Code Insiders setting. Open User Settings settings.json Keyboard Shortcut: ⌘, (Windows, Linux Ctrl+, ) Change the font size of various UI elements // Main editor "editor.fontSize" : 18 , // Terminal panel "terminal.integrated.f

The rest of this page is on the live site.