You can create Projects which contains multiple folders and can have individual settings depending on the project. A project is a folder or a group of folders saved at a certain state that will be remembered everytime you close the project.
You can also quick switch between projects with CMD + CTRL + P
or CTRL + ALT + P
If your are using Atom
or vscode
there is a plugin to add this behavior: