Editors

Configuring a Code Editor for a Calm Workflow

By PairedCode Editorial Team · · 4 min read

A code editor is where you spend much of your working day, and small irritations add up. A cluttered window, flashing notifications, inconsistent formatting and slow navigation all pull attention away from the problem you are trying to solve. A calm setup does not need a new tool. It needs a few deliberate choices in whatever editor you already use.

The advice below is general, so it applies to most editors, including VS Code, JetBrains IDEs, Vim, Neovim, Emacs and Sublime Text. Setting names differ, but the ideas carry over.

Start with readability

You read far more code than you write, so make reading comfortable.

  • Font. Choose a monospaced font designed for code, with clear differences between the characters 0 and O, and 1, l and I. A size that avoids leaning toward the screen is better than one that looks small and tidy.
  • Line height. A little extra space between lines reduces strain, especially on long sessions.
  • Theme. Pick one that you find easy on the eyes, with enough contrast to read comfortably. Both light and dark themes work. Many people do better with a dark theme in a dim room and a light one in a bright office.
  • Syntax colours. A restrained palette helps. If every token is brightly coloured, nothing stands out, and a few colours with clear meanings are easier to scan.

Remove what you do not need

Every visible panel competes for your attention. Open the editor and ask which parts you have not used in a week.

  1. Hide the minimap if you never click it.
  2. Collapse side panels you rarely use, and reopen them with a shortcut.
  3. Simplify the status bar to the essentials, such as the file position, language and Git branch.
  4. Turn on a distraction free or zen mode for deep work, which hides everything except the code.
  5. Close tabs you are no longer using. Many editors can limit the number of open tabs automatically.

A clean window is not about minimalism for its own sake. It is about keeping the code in focus.

Let tools handle formatting

Arguments about spaces, line length and quotes waste energy. Put the decision into a formatter and let it run automatically.

  • Pick one formatter per language, such as Prettier for web files, Black for Python, gofmt for Go or rustfmt for Rust.
  • Turn on format on save, so the code is tidied each time you press the save key.
  • Commit a shared configuration file to the repository, so everyone on the team gets the same result.
  • Add an .editorconfig file to set indentation, line endings and the final newline across editors.

Once formatting is automatic, you stop thinking about it, and code reviews stop containing style comments.

Tame the notifications

Editors can display a lot: suggestions, update prompts, extension recommendations, linting squiggles and popups. Some are valuable and others are noise.

  • Keep error and warning underlines, because they catch real problems early.
  • Reduce or disable pop-ups about updates and recommendations. Update on your own schedule.
  • Make autocomplete helpful rather than overwhelming. If suggestions appear after every keystroke, increase the delay or trigger them manually.
  • Limit extensions to those you actively use. Each one adds startup time and may add its own prompts. Remove the rest.

Reaching for the mouse breaks your flow. Learn the shortcuts for the actions you do most:

  • Open a file by name.
  • Search across the whole project.
  • Jump to a symbol or definition, and jump back.
  • Rename a symbol everywhere.
  • Toggle the terminal and the file tree.
  • Move lines up and down, and duplicate a line.

You do not need to learn them all. Choose three this week, practise them, and add more later. Most editors have a command palette that finds any action by name, which also shows the shortcut each time you use it.

Make the editor fit your project

Settings can be global or per project. Keep personal preferences, such as font and theme, in your global settings. Keep rules that affect the code, such as formatter choice and indentation, in the project, so they travel with the repository. Workspace settings files make it easy for a new teammate to open the project and get a working setup right away.

Also set up your terminal inside the editor. A built-in terminal that opens in the project folder saves constant switching, and a task runner or shortcut for running tests gives fast feedback.

Keep a backup of your settings

Once you have a setup you like, save it. Many editors can sync settings through an account, and all of them store configuration in text files you can keep in a Git repository of your own. That makes a new computer a matter of minutes rather than an afternoon of remembering preferences.

Review your setup now and then

Habits change, and so should your configuration. Every few months, ask what annoyed you recently and fix one thing. Small repeated improvements beat a big one time overhaul.

Frequently Asked Questions

Which editor should I choose?

The one you will actually learn well. Popular choices all handle everyday work, so the difference is mostly about preference, speed and the languages you use. Try one for a few weeks before judging it.

Is format on save always a good idea?

For most code, yes. In rare cases, such as files where exact whitespace matters or very large files where formatting is slow, you may want to switch it off for that file type only.

How many extensions are too many?

There is no fixed number. If the editor starts slowly, shows prompts you did not ask for, or you cannot say what an extension does, remove it. Add features back only when you miss them.

Related reading