How to switch between different s there aglobal settings

I work for different projects/customers, each having their own formatting (spacing, identation, etc) requirements. 
Some do use Webstorm, others use VSCode  or a combination of both in the same repository. None of the repositories do have these project specific WS/VSCode settings stored. I preferably work in Webstorm only.

So currently when starting for a new project/customer i do re-set the WS settings to default and make changes in the WS configuration conform the projects formatting requirements. Then i export the settings to a zip file. 

Switching between projects therefore requires me to import the exported zip and restart WS. I could not find any plugin making this easier.
Is there a better alternative to switch settings between projects and manage project specific settings ?
To clarify my last question; WS has global and project settings. Project settings are not stored globally. So one has to import global settings when switching between customers, but also import (default) project specific settings. 

 

4 comments
Comment actions Permalink

>Project settings are not stored globally. So one has to import global settings when switching between customers

project settings are stored with projects, in .idea folder, and can't be exported/imported through File > Manage IDE Settings

Note that there are so-called "settings for new projects" that are applied to all new projects on creation, see https://www.jetbrains.com/help/webstorm/2021.2/configure-project-settings.html#new-default-settings, they are exported/imported along with other IDE global settings

0
Comment actions Permalink

That projects settings are not stored globally is what i already mentioned in my question. 
My question is how to deal with (default new) project and global settings when having different customers with different formatting requirements. Would be great if i could;

 

* Switch between multiple configuration sets (global- en default new project settings)
* (re-)apply project settings to an existing (imported) non-Webstorm project.

0
Comment actions Permalink

>Switch between multiple configuration sets (global- en default new project settings)

no way; I can only suggest keeping several settings.zip files (exported through File > Manage IDE Settings), one for each configuration set

> (re-)apply project settings to an existing (imported) non-Webstorm project

you can keep .idea files version controlled and copy them to desired projects. See https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems for more info

0
Comment actions Permalink

@Mailbox

BTW: A global Code Style scheme (the main thing that can be different as I understand) can be copied into a Project and will become project-specific. Therefore you can have different global Code Style settings and then apply (copy) the desired one into the new project.

What other settings are you after that need to be customer-specific that needs such a radical "reset all global settings" approach? I thought that keeping everything to be project-specific is the best approach here. And if there is something in one project that needs to be replicated in another then I would just copy those config files between the projects (if it's possible).

1

Please sign in to leave a comment.