Skip to content

Instantly share code, notes, and snippets.

@chenshengzhi
Last active February 7, 2019 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenshengzhi/eb52c2dbf093c22c075d to your computer and use it in GitHub Desktop.
Save chenshengzhi/eb52c2dbf093c22c075d to your computer and use it in GitHub Desktop.
sublime text 3

sublime text 3:

1.plugins  
2.C build  
3.keymap  
4.preferences  
5.OS X command line tool  
6.header omment snippet  
@chenshengzhi
Copy link
Author

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,
}

@chenshengzhi
Copy link
Author

sublime text 3 command line tool for OS X :

sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin

@chenshengzhi
Copy link
Author

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>

@chenshengzhi
Copy link
Author

Default (OSX).sublime-keymap

[
    { "keys": ["ctrl+i"], "command": "reindent" },
    { "keys": ["ctrl+super+e"], "command": "find_all_under" },
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment