Skip to content

Instantly share code, notes, and snippets.

@dMartinezAyuso
Last active November 24, 2015 14:51
Show Gist options
  • Save dMartinezAyuso/5e62fbd2a851544d41d7 to your computer and use it in GitHub Desktop.
Save dMartinezAyuso/5e62fbd2a851544d41d7 to your computer and use it in GitHub Desktop.
Sublime Text Configuration

Sublime Text 3 config files

This is my config of settings, shortcuts and plugins that i usually work with ST3.
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"fade_fold_buttons": false,
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"draw_white_space": "all",
"trim_trailing_white_space_on_save": true
// "translate_tabs_to_spaces": true,
// "word_wrap": true
}
[
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["alt+d"], "command": "goto_definition" },
{ "keys": ["ctrl+alt+j"], "command": "fixmyjs" },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
}
]
{
"installed_packages":
[
"Alignment",
"All Autocomplete",
"Anaconda",
"AngularJS",
"BracketHighlighter",
"CodeFormatter",
"Color Highlighter",
"ColorPicker",
"Djaneiro"
"EditorConfig",
"ExportHtml",
"FixMyJS",
"Git",
"GitGutter",
"HTML5",
"HTML-CSS-JS Prettify",
"JSHint Gutter",
"Line Endings Unify",
"Markdown Preview",
"Pretty JSON",
"requirementstxt",
"Sass",
"SideBarEnhancements",
"SublimeLinter",
"Sublimerge Pro",
"SyncedSideBar"
]
}
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
<snippet>
<content><![CDATA[
(function () {
'use strict';
function ${1:ControllerName}Ctrl (${2:dependencies}) {
//...
}
angular
.module('${3:module}')
.controller('${1:ControllerName}Ctrl', ${1:ControllerName}Ctrl);
})();
]]></content>
<tabTrigger>ngcontroller</tabTrigger>
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
(function () {
'use strict';
function ${1:directiveName}() {
return {
restrict : '${2:AEC}',
templateUrl : '${3:templateUrl}',
replace : true,
scope : {
${4:directiveProperty}: '${5:=property}'
},
controller : function(${6:\$scope}) {
//...
},
link: function(scope, element, attrs){
//...
}
};
}
angular
.module('${7:module}')
.directive('${1:directiveName}', ${1:directiveName});
})();
]]></content>
<tabTrigger>ngdirective</tabTrigger>
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
(function () {
'use strict';
function ${1:factoryName}(${2:dependencies}) {
var ${1:factoryName} = {};
${1:factoryName}.${3:aFunction} = function () {
//...
};
return ${1:factoryName};
}
angular
.module('${4:module}')
.factory('${1:factoryName}', ${1:factoryName});
})();
]]></content>
<tabTrigger>ngfactory</tabTrigger>
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment