Sublime Text 2 File Includes Template

I know that a file exclusion pattern can be set in the project settings / default Sublime Text, but is it also possible to include only files based on the pattern?

For example, when working with my C ++ projects, I have files in the same folder, which are not necessarily source files.

Is it possible to explicitly specify Sublime Text to show me only * .cpp, * .h and * .txt files, ignoring everything else?

+7
c ++ sublimetext2 sublimetext
source share
1 answer

List the extensions you want to include in file_include_patterns . The following works for me with ST3 project files, do not have ST2 for testing.

 { "folders": [ { "name": "My Project", "path": ".", "file_include_patterns": [ "*.cpp", "*.h" ] } ] } 
+7
source share

All Articles