DEV Community

Cover image for Up Your VS Code Game with Workspaces
Luke Secomb
Luke Secomb

Posted on • Edited on • Originally published at blog.lukesecomb.digital

6 2

Up Your VS Code Game with Workspaces

Photo by Annie Spratt

What are Workspaces

VS Code's Workspaces allow users to customise both the UI and functionality of the IDE at a project level. Workspaces settings override User Settings and are useful for sharing project settings with other devs and allow for project specific functionality and customisation.

To open Workspace Settings use the shortcut Ctrl+,. You can either edit the settings using the UI on this view or click the { } in the top right corner to edit the JSON file.

What I use Workspaces for (atm)

  • Adjusting titleBar colors to differentiate between multiple projects.
  • search.exclude to hide dist / plugins / vendor folders from search results.
  • Exportable config allows sharing with co-workers on a per project basis.
  • Multiple folder paths on one project
  "folders": [
    {
      "path": "C:\\laragon\\www\\backend_server"
    },
    {
      "path": "C:\\Github\\front_end_ui"
    }
  ],
Enter fullscreen mode Exit fullscreen mode

My Workspace Starter Settings

This is what I copy in to when I spool up a new project as a base - Gist

{
  "folders": [
    {
      "path": "C:\\Github\\PROJECT_NAME"
    }
  ],
  "settings": {
    "workbench.colorCustomizations": {
      "titleBar.activeBackground": "#141414",
      "titleBar.activeForeground": "#FFC87F",
      "titleBar.inactiveBackground": "#696969",
      "titleBar.inactiveForeground": "#FFC87F"
    },
    "search.exclude": {
      ".cache": true,
      ".vscode": true,
      "node_modules": true
    },
    "window.title": "${rootName}",
    "editor.cursorSmoothCaretAnimation": true
  }
}
Enter fullscreen mode Exit fullscreen mode

So what do you use?

What other handy settings should other developers be using with their workspaces?

References

User and Workspace Settings

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay