Code Style (Settings | Code Style) can be individual (per project) as well as global (can be applied to all projects on your machine).
If per project -- will be stored in file named projectCodeStyle.xml inside .idea folder.
On positive side -- because it is part of the project it can be shared via VCS (which, as far as I remember, you already do)
On negative side -- changes will apply to current project only (unlike global).
If global -- will be stored in file inside .WebIde10\config\codestyles folder. Because it is stored in user files folder, it can not be so easily shared.
You can use "File | Export Settings..." and "File | Import Settings..." .. but that needs to be done manually (which does not sound like acceptable solution for your scenario).
You can setup some auto sync routine to share this folder content using Microsoft Briefcase or some 3rd party tools (so it will copy these files from your machine to everyone else's ... or everyone else will copy this from your machine) -- but that still may not be really practical. If you changing these settings quite often and want it to be done automatically then at the moment this one (or quite similar) is the most realistic way of doing it.
I was thinking -- maybe we can use per project settings and replace real .idea\projectCodeStyle.xml with symbolic link to the file in .WebIde10\config\codestyles folder ... but unfortunately this cannot be done because file structure is not the same.
If JB team will implement the same file structure for both local (per project) and global files, then the above idea should work fine.
P.S. Apparently simple copying global settings into project (using "Copy to Project" button in Settings | Code Style) did not copied all settings -- on my tests it did it only for "General" tab while "Wrapping and Braces" & "Blank Lines" were different when switching between "Use per project settings" and "Use global settings" (files had different sizes as well -- 3552 bytes for local & 5314 bytes for global). Is it a bug .. or it works completely different ?
P.S. Apparently simple copying global settings into project (using "Copy to Project" button in Settings | Code Style) did not copied all settings -- on my tests it did it only for "General" tab while "Wrapping and Braces" & "Blank Lines" were different when switching between "Use per project settings" and "Use global settings" (files had different sizes as well -- 3552 bytes for local & 5314 bytes for global). Is it a bug .. or it works completely different ?
Yea, I tested that, and had to do it twice, once for General and once for all others to get it to be an actual copy.
TBH -- no idea. I'm using manual sync (using SyncBackPro program -- to sync with USB drive or dropbox service) -- I'm the only dev in company, so no issues here at all.
Its marked as fixed in "Next Build" but not sure if that means current eap's or not, or where it is.
Seams like you should be able to export your code settings to a file maybe....(?) then send that to them.
-- Edit -- Just looked in the editor, its there in 102.18 in FILE ->EXPORT SETTINGS then you can choose the checkboxes of the settings you want to export.
I guess it works like this: * In the machine that you have all the settings on go to FILE -> EXPORT SETTINGS * mark all the checkboxes of the settings that you want to move * export the settings to a .jar file.
send the .jar file to the person who wants your settings. * they open phpstorm, go to FILE -> IMPORT SETTINGS * Select the file that you just sent them
I recon they will then have the options that you exported as an import option. havent tried it though.
I guess I need to be more clear. Thanks, but yes, we've tried that...and in fact it does "work", but there are problems with it. We don't want ALL of the settings, for one thing - some settings cause a problem (like they end up with duplicate Inspection Profiles.) Also, we are changing our settings a lot, and since PHPStorm won't allow import of a file via UNC, they have to map a drive or copy it to their machine.
Code Style (Settings | Code Style) can be individual (per project) as well as global (can be applied to all projects on your machine).
If per project -- will be stored in file named projectCodeStyle.xml inside .idea folder.
If global -- will be stored in file inside .WebIde10\config\codestyles folder. Because it is stored in user files folder, it can not be so easily shared.
I was thinking -- maybe we can use per project settings and replace real .idea\projectCodeStyle.xml with symbolic link to the file in .WebIde10\config\codestyles folder ... but unfortunately this cannot be done because file structure is not the same.
If JB team will implement the same file structure for both local (per project) and global files, then the above idea should work fine.
P.S.
Apparently simple copying global settings into project (using "Copy to Project" button in Settings | Code Style) did not copied all settings -- on my tests it did it only for "General" tab while "Wrapping and Braces" & "Blank Lines" were different when switching between "Use per project settings" and "Use global settings" (files had different sizes as well -- 3552 bytes for local & 5314 bytes for global). Is it a bug .. or it works completely different ?
You can also look at this plugin -- may be it will be any good for you: http://plugins.intellij.net/plugin/?webide&id=4560
Yea, I tested that, and had to do it twice, once for General and once for all others to get it to be an actual copy.
Any idea how this works? How conflicts are handled and such?
TBH -- no idea. I'm using manual sync (using SyncBackPro program -- to sync with USB drive or dropbox service) -- I'm the only dev in company, so no issues here at all.
Maybe this is what your looking for: "Export / import all IDE & Project Settings"
http://youtrack.jetbrains.net/issue/WI-1894?projectKey=WI&query=export+settings
Its marked as fixed in "Next Build" but not sure if that means current eap's or not, or where it is.
Seams like you should be able to export your code settings to a file maybe....(?) then send that to them.
-- Edit --
Just looked in the editor, its there in 102.18 in FILE ->EXPORT SETTINGS then you can choose the checkboxes of the settings you want to export.
It's marked as Obsolete. I posted a comment about that.
Yeah the settings seam to be there in PS-102.18
I guess it works like this:
* In the machine that you have all the settings on go to FILE -> EXPORT SETTINGS
* mark all the checkboxes of the settings that you want to move
* export the settings to a .jar file.
send the .jar file to the person who wants your settings.
* they open phpstorm, go to FILE -> IMPORT SETTINGS
* Select the file that you just sent them
I recon they will then have the options that you exported as an import option. havent tried it though.
I guess I need to be more clear. Thanks, but yes, we've tried that...and in fact it does "work", but there are problems with it. We don't want ALL of the settings, for one thing - some settings cause a problem (like they end up with duplicate Inspection Profiles.) Also, we are changing our settings a lot, and since PHPStorm won't allow import of a file via UNC, they have to map a drive or copy it to their machine.