keepcalculator

06 Numbers and Powers

VS Code Features That Surprise Experienced Users

Card No. 06·85829 · Updated · Standard formula, shown below

If you have used VS Code for years, you likely know extensions, debugging, and Git integration. But several built-in features—such as multi-cursor editing, command palette shortcuts, and integrated terminal tricks—are often overlooked even by seasoned developers. This article explains those hidden capabilities, how to use them, and why they change daily workflows.

Background: Why VS Code Feels Familiar Yet Deep

Visual Studio Code, released by Microsoft in 2015, quickly became the most popular code editor due to its speed, extensibility, and free price. Most users stick to the basics: opening files, running code, installing a few extensions. What many miss is that the editor ships with a rich set of built-in tools that require no extra downloads. These features are intentionally discoverable only through keyboard shortcuts or the command palette, which is why even long-time users find surprises.

Multi-Cursor Editing: More Than a Party Trick

Multi-cursor editing lets you place several cursors at once and type or edit in all locations simultaneously. It sounds simple, but it transforms repetitive tasks like renaming variables, adding prefixes, or editing multiple lines of data.

  • Add a cursor: Press Alt and click anywhere to add a cursor.
  • Select next occurrence: Highlight a word and press Ctrl+D (Windows/Linux) or Cmd+D (Mac) to select the next identical string.
  • Add cursors to all matches: Press Ctrl+Shift+L (Windows/Linux) or Cmd+Shift+L (Mac) to select every occurrence in the file.
  • Column selection: Hold Shift+Alt and drag to select a rectangular block.

For example, if you have a list of product names in a CSV and need to wrap each in quotes, place the cursor at the start of the first name, press Ctrl+Alt+Down to add cursors on the lines below, then type the quote character. This works faster than any find-and-replace for irregular data.

Command Palette: The Hidden Control Center

The command palette, opened with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac), gives access to every command in the editor. Most users only use it to change themes or run basic commands, but it does far more:

  • Run any command by name—like “Toggle Line Comment” or “Fold All” without memorizing shortcuts.
  • Access file navigation—type “>” to see commands, or just type a filename to open it quickly.
  • Run tasks—if you have a build script configured, the palette can trigger it.
  • Change language mode—switch syntax highlighting for a file on the fly.

Pro tip: type “>” followed by a keyword like “git” to see all Git-related commands. This is faster than hunting through menus.

Integrated Terminal: More Than Just a Shell

VS Code’s integrated terminal (opened with Ctrl+`) is a full-featured command line inside the editor. Many users run simple commands, but it has advanced capabilities:

  • Multiple terminals: Click the plus icon to open several side-by-side or in a split view.
  • Run selected text: Highlight a command in a file, press Ctrl+Shift+Enter to run it in the terminal.
  • Copy and paste with ease: Right-click to paste, or use the standard shortcuts.
  • Open a terminal in a specific folder: Right-click a folder in the explorer and select “Open in Integrated Terminal.”

A common misconception is that the terminal is just a convenience. In reality, it integrates with the editor’s debugger and task runner, so you can run tests and see errors without switching windows.

Keyboard Shortcuts: The Real Time-Savers

Beyond multi-cursor, several shortcuts are underused:

  • Quick open file: Ctrl+P lets you jump to any file by typing part of its name.
  • Navigate back/forward: Ctrl+Alt+- and Ctrl+Shift+- move through your cursor history.
  • Go to definition: F12 jumps to where a symbol is defined; Alt+F12 peeks inline.
  • Rename symbol: F2 renames a variable across the entire file or project, respecting scope.
  • Format document: Shift+Alt+F auto-formats the current file based on the language’s formatter.

These shortcuts are not just for speed—they reduce mouse use, which reduces repetitive strain and keeps your hands on the keyboard.

Common Problems and How to Avoid Them

Even with these features, users run into pitfalls:

  • Multi-cursor accidentally on: If you click with Alt without realizing, you may get extra cursors. Press Esc to exit multi-cursor mode.
  • Command palette not finding a command: Ensure you typed the command name correctly; some are hidden unless a relevant extension is active.
  • Terminal not recognizing your shell: VS Code uses your system’s default shell. If you changed it, restart the editor.
  • Shortcuts conflicting with extensions: Some extensions override default keys. Check your keybindings with Ctrl+K Ctrl+S and reset if needed.

Comparisons: VS Code vs Other Editors

Many users come from Sublime Text, Atom, or even vim. VS Code’s unique advantage is the combination of a graphical interface with a powerful command palette. Sublime Text has similar multi-cursor but lacks the integrated debugger. Atom is slower and no longer actively developed. Vim is powerful but has a steep learning curve. VS Code offers a middle ground: you can use it as a simple text editor or as a full IDE with extensions for almost any language.

Frequently Asked Questions

How do I enable multi-cursor in VS Code?

Multi-cursor is enabled by default. Use Alt+click to add a cursor, Ctrl+D to select the next occurrence, and Ctrl+Shift+L to select all occurrences. If it doesn’t work, check your keyboard shortcuts in Ctrl+K Ctrl+S.

Why is the command palette not showing my tasks?

Tasks appear in the command palette only if you have a tasks.json file in your .vscode folder. Create one via Tasks: Configure Task from the palette, or install a task-runner extension.

Can I use the integrated terminal with WSL on Windows?

Yes. Set your default terminal profile to WSL in the terminal dropdown, or open a new WSL terminal directly from the terminal panel. VS Code detects WSL and offers it as a profile if installed.

How do I reset all keyboard shortcuts to default?

Open the keyboard shortcuts editor (Ctrl+K Ctrl+S), click the three-dot menu in the top-right, and select “Show User Keybindings” to remove your custom entries. Alternatively, delete the keybindings.json file from your user settings folder.

Does VS Code have built-in Git support?

Yes, VS Code includes Git integration out of the box. You can stage, commit, push, and pull from the Source Control view (Ctrl+Shift+G). It also shows inline diff decorations and lets you resolve merge conflicts visually.

What is the fastest way to open a file in VS Code?

Press Ctrl+P and type part of the filename. Use fuzzy matching—you don’t need to type the full path. For example, typing “app.js” will find src/components/App.js.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →