keepcalculator

06 Numbers and Powers

VS Code Settings: Coding Less of a Chore?

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

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered
You enter
Finish time, Distance
You get
Average pace, Average speed
Rounding
2 dp

Yes, configuring VS Code settings can significantly reduce repetitive tasks and make coding less of a chore, but only if you focus on a handful of high-impact customizations rather than endlessly tweaking the editor. By setting up user and workspace settings, keyboard shortcuts, and a few key extensions, you can automate formatting, navigation, and error-catching, saving hours each week.

Formula

The calculator above computes your average pace and speed for a run or ride. The formula for pace is:

Pace (min/km) = Total time (minutes) ÷ Distance (km)

Speed is the inverse, expressed as:

Speed (km/h) = Distance (km) ÷ (Total time (minutes) ÷ 60)

Variables: t = finish time in minutes, d = distance in kilometers. The pace result is shown in minutes per kilometer (min/km), and speed in kilometers per hour (km/h).

Worked Example

Using the default values: t = 50 minutes, d = 10 km.

  1. Pace = 50 ÷ 10 = 5.00 min/km
  2. Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h

The calculator returns a pace of 5.00 min/km and a speed of 12.00 km/h, matching the example.

Background: Why Settings Matter More Than Extensions

Most developers install dozens of extensions before touching the built-in settings, but the core editor settings often have a bigger impact on daily comfort. VS Code stores configuration in JSON files: User settings apply to every project, while Workspace settings (in a .vscode/settings.json file) are shared with your team via version control. Understanding this split is the first step to reducing friction.

The default settings are conservative: the editor does not auto-format on save, does not trim trailing whitespace, and shows a minimap that many find distracting. Changing a few defaults can make the editor feel noticeably faster and more predictable, which directly reduces the mental overhead of coding.

How to Change Settings: The Three Entry Points

You can adjust settings in three ways, each with a different purpose:

  • Settings UI (Ctrl+, / Cmd+,): searchable interface, good for discovering options.
  • settings.json: full control, allows comments and advanced values.
  • Keyboard shortcuts (Ctrl+K Ctrl+S): bind any command to a key combination.

For most users, the Settings UI is enough for simple changes, but editing JSON directly is faster once you know what you want. For example, to enable format-on-save, add "editor.formatOnSave": true to your user settings.

High-Impact Settings to Reduce Chore-Like Work

These are the settings that consistently save time across languages and workflows:

  • Auto-format on save: editor.formatOnSave – eliminates manual indentation and spacing.
  • Trim trailing whitespace: files.trimTrailingWhitespace – keeps diffs clean.
  • Word wrap: editor.wordWrap – for markdown or long comments.
  • Bracket pair colorization: editor.bracketPairColorization.enabled – helps spot mismatched brackets.
  • Suggestions on typing: editor.quickSuggestions – speeds up code completion.
  • Cursor smooth caret animation: editor.cursorSmoothCaretAnimation – reduces visual distraction.

These are not flashy, but they address the most common annoyances: inconsistent formatting, stray whitespace, and losing your place in nested code.

Common Problems and Misconceptions

A frequent misconception is that more extensions equal less work. In reality, each extension adds overhead: startup time, memory usage, and potential conflicts. Disable extensions you don’t use regularly. Another common issue is editing the wrong settings file – workspace settings override user settings, so if your team has a strict .vscode/settings.json, your personal preferences may be ignored. Check which file is active by looking at the tab title in the Settings editor.

Another pitfall is copying settings from online guides without understanding them. For example, setting "editor.defaultFormatter" to a specific extension can break if that extension is not installed for the current language. Always test changes in a scratch file.

How to Choose Settings for Your Workflow

Start by identifying your biggest time sinks. If you spend minutes fixing indentation, enable format-on-save. If you often lose track of function boundaries, try breadcrumbs ("breadcrumbs.enabled": true). If you switch between projects with different coding styles, use workspace settings to enforce team rules, and keep personal preferences in user settings.

For teams, consider using Settings Sync (built-in) to share your user settings across machines, but be careful not to overwrite workspace-specific configurations. A good rule is: user settings for editor behavior, workspace settings for project-specific rules.

Comparisons: VS Code vs. Other Editors

Compared to heavier IDEs like IntelliJ or Eclipse, VS Code is lighter and faster to start, but requires more manual setup for advanced features like refactoring or debugging. Compared to minimalist editors like Sublime Text or Vim, VS Code offers more built-in functionality (integrated terminal, Git, debugging) but can feel slower if you load too many extensions. The settings JSON format is similar to Sublime’s, but VS Code’s UI makes discovery easier for beginners.

Costs and Safety

VS Code is free and open-source, and all settings are local files that you can back up or version-control. There is no cost to using the built-in settings. Safety-wise, be cautious when copying settings from untrusted sources – a malicious settings.json could theoretically run tasks on opening a folder. Always review workspace settings from third-party projects before opening them, especially if they include tasks.json or launch.json.

Frequently Asked Questions

Does VS Code have a settings sync feature?

Yes, since version 1.48, VS Code includes built-in Settings Sync that syncs your settings, keybindings, extensions, and snippets across devices using your Microsoft or GitHub account. You can enable it via the gear icon in the lower-left corner.

What is the difference between user and workspace settings?

User settings apply globally to every project you open, while workspace settings are stored in a .vscode folder inside your project and override user settings for that project. Workspace settings are typically committed to version control to enforce team conventions.

Can I use different formatting settings for different languages?

Yes, you can use language-specific settings by adding a section like "[javascript]": { "editor.tabSize": 2 } in your settings.json. This allows you to have different indentation or formatting rules for each language.

Why are my settings not applying?

Check if a workspace setting is overriding your user setting. Also, ensure you haven’t accidentally set a value to false that should be true. Restart VS Code or reload the window (Ctrl+Shift+P → “Reload Window”) to apply changes.

How do I reset all settings to default?

Open the Settings UI, click the gear icon in the top-right, and choose “Reset Settings”. This will clear all user settings, but your workspace settings remain. Alternatively, delete the settings.json file in your user folder.

Is it worth using a settings.json from a popular developer?

It can be a good starting point, but you should understand each setting before adopting it. Popular dotfiles repositories often contain highly opinionated settings that may not suit your workflow. Start with a minimal set and add as you identify needs.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0 | 100000
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

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 →