sublime text :: Project
http://www.sublimetext.com/docs/3/projects.html
Overview
Projects 는 2개의 파일로 되어 있다.
일반적으로 버전관리는 (sublime-workspace 파일이 아니라) sublime-project 확인한다.
- sublime-project 파일: 프로젝트 정의를 담고 있는 파일
- sublime-workspace 파일: 사용자의 세부적인 데이터를 가지고 있는 파일 (ex 열어놓은 파일, 수정한정보 ).
Project Format
{
\t"folders":
\t[
\t\t{
\t\t\t"path": "."
\t\t}
\t]
}
sublime-project 파일의 형식은 JSON이고, 3가지 최상위 레벨을 가지고 있다.
1. folders, for the included folders
2. settings, for file-setting overrides
3. build_systems, for project specific build systems.
{
\t"folders":
\t[
\t\t{
\t\t\t"path": ".",
\t\t\t"file_exclude_patterns" : ["*.sublime-workspace",
\t\t\t\t "*.sublime-project",
\t\t\t\t "sftp-config.json"],
\t\t\t"folder_exclude_patterns": ["www"],
\t\t\t"follow_symlinks": true
\t\t}
\t]
}
{
"folders":
[
{
"path": "src",
\t\t\t"file_exclude_patterns" : ["*.sublime-workspace",
\t\t\t\t "QuickTip.Rproj",".RData",".Rhistory"],
"folder_exclude_patterns": ["backup"],
"follow_symlinks": true
},
{
"path": "docs",
"name": "Documentation",
"file_exclude_patterns": ["*.css"]
}
],
"settings":
{
"tab_size": 2
},
"build_systems":
[
{
"name": "List",
"shell_cmd": "ls -l"
}
]
}
1) Folders
각 폴더는 Path는 필수로 입력되어야하고 (path 는 상대경로 절대경로 모두가능)
옵션
– file_exclude_patterns, file_include_patterns
– folder_exclude_patterns, folder_include_patterns
– follow_symlinks. (심볼릭 링크를 가능하게 한다)
Folders 는 Sidebar에 표시될 Name이 주어질수 있다.
2) Settings
Settings 은 user setting에 우선순위가 높다.
(몇몇의 syntax관련 세팅은 override되지 않을 수 있다. )
3) Build Systems
Build Systems 을 정의한다.
이것은 Tools> Build System 아래 메뉴에서 사용할수 있다.
example>
{
"folders":
[
{
"name": "include\\\\language",
"path": "..\\\\@Apps\\\\Neo_sugarcrm_lang\\\\include\\\\language",
"folder_exclude_patterns": [".Rproj.user"],
"file_exclude_patterns": ["*.sublime-workspace",
".RData",".Rhistory","*.Rproj"]
"follow_symlinks": true,
},
{
"follow_symlinks": true,
"path": "C:\\\\Dropbox\\\\sugarProject\\\\@Apps\\\\Neo_sugarcrm_lang\\\\include\\\\phpmailer\\\\language"
"folder_exclude_patterns": ["node_modules", ".svn", ".git", ".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"],
}
],
"settings":
{
"tab_size": 2
},
"build_systems":
[
{
"name": "List",
"shell_cmd": "ls -l"
}
]
}