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.
What is Visual Studio Code?
Section titled โWhat is Visual Studio Code?โ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
Configuration
Section titled โConfigurationโIndentation Settings
Section titled โIndentation SettingsโTo ensure consistency across projects, we use 4 spaces for indentation.
You can configure this in VS Code by following these steps:
- Open Code > Preferences > Settings
- Search for
Editor: Tab Size - Set the value to
4 - Make sure โInsert Spacesโ is enabled
Recommended Extensions
Section titled โRecommended ExtensionsโWe suggest installing the following extensions to improve your development experience:
| Extension | Purpose | Link |
|---|---|---|
| Better Comments | Highlight different types of comments | ๐ |
| Auto Close Tag | Automatically closes HTML/XML tags | ๐ |
| Auto Rename Tag | Renames paired HTML/XML tags simultaneously | ๐ |
| Prettier - Code formatter | Auto-formats code on save | ๐ |
| Console Ninja | Helps with console.log management and debugging | ๐ |
| Astro | Syntax highlighting and language support for Astro | ๐ |
| Git Blame | Shows git blame information inline | ๐ |
| Nuxt Extension Pack | Collection of helpful Nuxt.js extensions | ๐ |
| Nuxtr | Snippets and helpers for Nuxt 3 | ๐ |
| PHP Intelephense | PHP language server for better autocompletion and linting | ๐ |
| Vue - Official | Official Vue language tools (recommended for Vue 3) | ๐ |
Knowledge Check
Test your understanding of this section
Loading questions...