foundation Estimated learning time: 8 h

P-2.2 An Editor That Helps You

You can navigate a codebase by symbol rather than by scrolling, and you have a formatter and a linter running so that whole categories of mistake are caught before you run anything.

An editor set up properly removes a class of error before it costs you a run, and most people never turn those features on. The three that matter are jumping to a definition, automatic formatting, and a linter that reads your code while you type. The confusion to avoid is treating formatting as a matter of taste worth arguing about, when its real value is that nobody has to think about it at all.

Work through these

  • Opening a project rather than a file, and why that changes everything

    An editor that knows the whole project can resolve names across files, which is what makes jumping to a definition possible. Opening single files gives you a text box with colours.

    Visual Studio Code Documentation · Docs
  • Navigating by symbol: go to definition, find all references

    Reading unfamiliar code means following names to where they are defined and finding everywhere they are used. Doing that by searching text works until two things share a name.

  • A formatter, running automatically on save

    Automatic formatting ends every discussion about layout and makes changes readable, because the difference between two versions contains only what somebody meant to change.

  • A linter, and the difference between style warnings and real defects

    A linter reports both harmless habits and genuine mistakes, and treating the two the same way is how people learn to ignore all of it. Configure it so that what it reports is worth reading.

  • Running and stopping your program from inside the editor, with breakpoints

    Setting a breakpoint and inspecting values beats adding print statements for anything with more than a few moving parts. It is the same debugger you met earlier, with a friendlier front.

Sign in to keep your progress.

Free resources

We haven't checked most of these for screen reader use yet.

Links last checked 31 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.