Is it possible to define a special background color for generated files?

Hello,

would be nice if there was a possibility in the coloring settings to define a different foreground/background color for files containing a (definable) string
like '// generated file - do not edit' to prevent users from accidetially edit generated files and loose their changes. Didnt't find anything like that in IntelliJ 11.1.
There isn't yet, is it?

Regards,
Reto

2 comments
Comment actions Permalink

Hello Reto,

no, there's no possibility to colour files according to their content.

But you can use Settings->File Colors to assign colors according to scopes, e.g. create a scope for source-root containing the generated files.

0
Comment actions Permalink

Hello Yann,

thank you for the answer, we are using the scopes already, but they are on directory level if I'm right. We have generated Dao, Dbo etc which are in structures along with other files, therefore something similar like an inspection for a generated file' or 'do not edit' would be nice. Maybe in a future release of IntelliJ :-)

Regards,
Reto

0

Please sign in to leave a comment.