
Today I learned, VS Code has profiles to store settings. This allows me to set a whole different bunch of settings depending on the work I’ve to do.
For instance, at university we have to do a lot of Java, including the Spring framework. A lot of people are probably going to use IntelliJ for Java development. While there is nothing wrong with it, I don’t really like its sluggishness. It takes a whole lot of time to open a project.
VS Code also has a Java Spring profile template, which seems to be decent. The only downside is, you can’t inherit from other profiles right now. So I’d have to copy at least quite a bit of my own config and whenever I change things on my default profile I’d have to consider them to be part of the other profile. 🥲
Using profiles
There are 2 ways to use them:
- Folder and workspace associations
- or a command line alias e.g.
alias coja="code --profile 'Java Spring'"
I’m going to give it a try.