Skip to content

Visual Studio Code Configuration

A consistent development environment is essential for collaboration and productivity. Visual Studio Code serves as our primary code editor at Terra, providing the flexibility and power needed to work across the diverse range of technologies we use in client projects.


Visual Studio Code (VS Code) is a free, open-source code editor developed by Microsoft. Itโ€™s lightweight, fast, and highly customizable with a massive library of extensions.

We use VS Code because it:

  • Supports all the technologies we work with (Astro, WordPress, Vue, Nuxt, PHP, JavaScript, TypeScript, and more)
  • Offers powerful IntelliSense and code completion
  • Integrates seamlessly with Git and version control
  • Provides built-in debugging capabilities
  • Has a thriving extension ecosystem
  • Works consistently across macOS, Windows, and Linux

To ensure consistency across projects, we use 4 spaces for indentation.
You can configure this in VS Code by following these steps:

  1. Open Code > Preferences > Settings
  2. Search for Editor: Tab Size
  3. Set the value to 4
  4. Make sure โ€œInsert Spacesโ€ is enabled

We suggest installing the following extensions to improve your development experience:

ExtensionPurposeLink
Better CommentsHighlight different types of comments๐Ÿ”—
Auto Close TagAutomatically closes HTML/XML tags๐Ÿ”—
Auto Rename TagRenames paired HTML/XML tags simultaneously๐Ÿ”—
Prettier - Code formatterAuto-formats code on save๐Ÿ”—
Console NinjaHelps with console.log management and debugging๐Ÿ”—
AstroSyntax highlighting and language support for Astro๐Ÿ”—
Git BlameShows git blame information inline๐Ÿ”—
Nuxt Extension PackCollection of helpful Nuxt.js extensions๐Ÿ”—
NuxtrSnippets and helpers for Nuxt 3๐Ÿ”—
PHP IntelephensePHP language server for better autocompletion and linting๐Ÿ”—
Vue - OfficialOfficial Vue language tools (recommended for Vue 3)๐Ÿ”—

Knowledge Check

Test your understanding of this section

Loading questions...