Is it possible to exclude files from reformating code
Permanently deleted user
创建于
Is there an option somewhere to ingnore certain files from being reformatted when doing a reformat code on a folder? For instance, I don't wan't minified .js files from being touched...
But .. it could be possible to achieve this using custom scope (TBH -- I have not tried this myself, so I can be wrong here, but in theory it sounds as possible):
Define some custom scope (Settings | Scopes) that will include your project files but excluding those unwanted-for-reformat files
In Project View panel -- switch to that scope view instead of Project Files
Thanks, but the Reformat Code dialog has no scope functionality. Would be nice if the 'exclude' option would be built in. Just a list of file names / folders that should be ignored. Preferably with wildcard support (for instance: all '*.min.js' and '*.min.css' files will be ignored).
Just a list of file names / folders that should be ignored. Preferably with wildcard support (for instance: all '*.min.js' and '*.min.css' files will be ignored).
I'm looking for a same feature for same reason as well. Are there any plans to implement this? I didn't find any feature request in Issue Tracker. Should I create one?
Hi Peter,
No, there is no such settings.
But .. it could be possible to achieve this using custom scope (TBH -- I have not tried this myself, so I can be wrong here, but in theory it sounds as possible):
Thanks, but the Reformat Code dialog has no scope functionality.
Would be nice if the 'exclude' option would be built in.
Just a list of file names / folders that should be ignored. Preferably with wildcard support (for instance: all '*.min.js' and '*.min.css' files will be ignored).
Hi,
I'm looking for a same feature for same reason as well.
Are there any plans to implement this? I didn't find any feature request in Issue Tracker. Should I create one?
Thank you!
I weas looking in PhpStorm's issue tracker, therefore didn't find them.