There are two questions:
1) How to exclude these files in string-based refactoring such as search and replace
You can customize the custom scope when searching and replacing. This custom area is saved, so you donโt need to customize it every time you find and replace.
Open the search and replace window or the search box on the way, and you will see the scope section in the window with โCustomโ as the last parameter. You can select the files you want to include / exclude here.
2) How to prevent file changes in the IDE without write protection
This I am not sure. You can add them to a separate changelist so that they are always grouped separately from the main changeset or add them to the vc ignore list. But this does not stop the IDE from modifying them. Perhaps you need to find out what is editing these files and stop this process?
Rachel
source share