Is it possible to exclude files from reformating code

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...

5 comments
Comment actions Permalink

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):

  1. Define some custom scope (Settings | Scopes) that will include your project files but excluding those unwanted-for-reformat files
  2. In Project View panel -- switch to that scope view instead of Project Files
  3. Apply reformat action
0
Comment actions Permalink

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).

0
Comment actions Permalink

Hi,

nonumber wrote:

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?

0
Comment actions Permalink
Are there any plans to implement this? I didn't find any feature request in Issue Tracker. Should I create one?

0
Comment actions Permalink

Thank you!

I weas looking in PhpStorm's issue tracker, therefore didn't find them.

0

Please sign in to leave a comment.