Visually distinguish auto-generated files?

后端 未结 1 1084
死守一世寂寞
死守一世寂寞 2021-01-26 19:31

We have a bunch of files that are auto-generated based on the database model. I have had some facepalm experiences because I modified some code, only to find out my modification

1条回答
  •  不思量自难忘°
    2021-01-26 19:47

    From PhpStorm side you can use Scopes and File Colors functionality.

    1. Create custom Scope that would list only such files (will be easier if such files are located in specific folders or have some unique part in file name .. otherwise you will have to point to individual files).

    2. Use File Colors functionality (add your Scope there) and assign unique color.

    Now such files will have that color as editor tab background (not editor itself, just editor tab) as well as background in Project View/different search and other file-related popups (optional; can be turned on/off but it will do that for ALL scopes).

    This whole procedure/idea has even got own help page: https://www.jetbrains.com/help/phpstorm/2016.3/configuring-scopes-and-file-colors.html?search=scope

    0 讨论(0)
提交回复
热议问题