Skip to content

Instantly share code, notes, and snippets.

@BeFiveINFO
Last active October 11, 2018 20:38
Show Gist options
  • Save BeFiveINFO/85ab59d2e4780b82f4724e4b23f12a00 to your computer and use it in GitHub Desktop.
Save BeFiveINFO/85ab59d2e4780b82f4724e4b23f12a00 to your computer and use it in GitHub Desktop.
Sublime Text 3 Clean Install Set Up Memo
[
{
"keys": ["super+shift+r"],
"command": "reindent",
"args": {"single_line": true}
},
{
"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
}
]
<snippet>
<content><![CDATA[
console.log(${1:variable});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jscons</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
console.table(${1:variable});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jsctb</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
(function (\$) {
"use strict";
${1:// Code Here}
})(window.jQuery);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jqr</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
- CodeFormatter
- DocBlockr
- Emmet
- Syntax Highlighting for Sass
Snippet installation folder:
~/Library/Application Support/Sublime Text 3/Packages/User/Snippets
Re-formatter comment fix
http://stackoverflow.com/questions/38248025/indentation-error-with-sublime-text/38261481#38261481
{
"auto_match_enabled": false,
"find_selected_text": true,
"ignored_packages":
[
"Vintage"
],
"trim_trailing_white_space_on_save": true,
"word_separators": "./\\()\"':,.;<>~!@%^&*|+=[]{}`~?",
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".sass-cache", "tmp"],
"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "._*"],
}
[
{
"keys": ["super+shift+r"],
"command": "reindent",
"args": {"single_line": true}
},
{
"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment