Как показать файл .gitignore на боковой панели в Sublime Text 2/3

7107
ValeriiVasin

Я хочу увидеть мой проект .gitignore файл. Это всегда скрыто. Почему это скрыто и как это исправить?

2
Файлы с именами, начинающимися с точки, скрыты в Unix-подобных системах. Вы можете переключаться между файлами в ST, нажимая Ctrl + P и вводя имя файла, это быстрее, чем использование боковой панели и * .gitignore * там видно. Вам не нужно вводить полное имя, ST использует нечеткий поиск. gronostaj 10 лет назад 0

1 ответ на вопрос

5
nerdwaller

In Unix, as @gronostaj said, files proceeded with a . are hidden by default (Ctrl+h toggles this in many environments). However, in Sublime - you can manually control what types of files are shown/hidden separate from what the system default is.

For you to change your settings you need to adjust your User Preferences file with the following:

{ "folder_exclude_patterns": [".svn", ".hg", "CVS"], "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.sublime-workspace"] } 

Add/remove as necessary from there.

On Mac, your preferences are under Sublime Text > Preference > Settings - User. I don't recall the menu structure on my windows box, but it's probably under Tools.

For me:

enter image description here

Похожие вопросы