sublime text 3:
1.plugins
2.C build
3.keymap
4.preferences
5.OS X command line tool
6.header omment snippet
sublime text 3:
1.plugins
2.C build
3.keymap
4.preferences
5.OS X command line tool
6.header omment snippet
C.sublime-build
{
"shell_cmd": "gcc \"${file}\" -o \"${file_path}/${file_base_name}\" -std=c11 -O2 -Wall -lm --static",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"shell_cmd": "gcc -std=c11 -O2 -Wall -lm --static \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
}
]
}
Default (Linux).sublime-keymap
[
{ "keys": ["super+right"], "command": "move_to", "args": { "to": "eol" } },
{ "keys": ["super+left"], "command": "move_to", "args": { "to": "bol" } },
]
Preferences.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme",
"create_window_at_startup": true,
"close_windows_when_empty": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"highlight_modified_tabs": true,
"save_on_focus_lost": true,
"show_encoding": true,
"translate_tabs_to_spaces": true,
"word_wrap": true,
"trim_trailing_white_space_on_save": true,
}
sublime text 3 command line tool for OS X :
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin
HeaderComment.sublime-snippet
<snippet>
<content><![CDATA[
/************************
*
* $TM_FILENAME
* ${1:[description]}
*
* ${2:[date]}
* ${3:[author]}
*
************************/
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>***</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Default (OSX).sublime-keymap
[
{ "keys": ["ctrl+i"], "command": "reindent" },
{ "keys": ["ctrl+super+e"], "command": "find_all_under" },
]
plugins: