Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text JS kurz 2017/18 settings

Sublime Text 3 nastavenia

Package Control.sublime-settings
CTRL + SHIFT + P, "Package Control Settings - User"
(CMD + SHIFT + P na Macu)

{
	"bootstrapped": true,
	"in_process_packages":
	[
	],
	"installed_packages":
	[
		"A File Icon",
		"AdvancedNewFile",
		"Alignment",
		"AlignTab",
		"AutoFileName",
		"Color Highlighter",
		"Dayle Rees Color Schemes",
		"DocBlockr",
		"Emmet",
		"Highlight",
		"Inc-Dec-Value",
		"JavaScriptNext - ES6 Syntax",
		"LiveStyle",
		"Markdown Preview",
		"Package Control",
		"SideBarEnhancements",
		"Syntax Highlighting for Sass",
		"tern_for_sublime",
		"Theme - Spacegray"
	]
}

Preferences.sublime-settings
CTRL + SHIFT + P, "Preferences: Settings"
(CMD + SHIFT + P na Macu, alebo CMD + ,)
alebo klasicky cez menu, Preferences > Settings

{
	"always_show_minimap_viewport": true,
	"auto_complete_triggers":
	[
		{
			"characters": "<",
			"selector": "text.html"
		},
		{
			"characters": ".",
			"selector": "source.js"
		}
	],
	"bold_folder_labels": true,
	"caret_extra_width": 1,
	"color_scheme": "Packages/User/Color Highlighter/themes/yabhub.tmTheme",
	"detect_slow_plugins": true,
	"dictionary": "Packages/Language - English/en_US.dic",
	"drag_text": false,
	"ensure_newline_at_eof_on_save": true,
	"fade_fold_buttons": true,
	"font_face": "Inconsolata-g",
	"font_options":
	[
		"no_round"
	],
	"font_size": 14.0,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignore_vcs_packages": true,
	"ignored_packages":
	[
		"Vintage"
	],
	"indent_guide_options":
	[
		"draw_normal"
	],
	"line_numbers": true,
	"line_padding_bottom": 4,
	"line_padding_top": 4,
	"margin": 4,
	"overlay_scroll_bars": "enabled",
	"results_in_dialog": true,
	"save_on_focus_lost": true,
	"scroll_past_end": true,
	"sidebar_large": true,
	"static_modified_tab": true,
	"tabs_small": true,
	"theme": "Spacegray Light.sublime-theme",
	"trim_trailing_white_space_on_save": true,
	"use_simple_full_screen": true,
	"word_wrap": true
}

Default.sublime-keymap
CTRL + SHIFT + P, "Key Bindings"
(CMD + SHIFT + P na Macu)

[
	{ "keys": ["super+v"], "command": "paste_and_indent" },
	{ "keys": ["super+shift+v"], "command": "paste" },
	{ "keys": ["ctrl+§"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },

	{ "keys": ["super+shift+d"], "command": "expand_selection", "args": {"to": "word"} },
	{ "keys": ["super+shift+d"], "command": "find_under_expand", "context":
		[
			{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
		]
	},

	{ "keys": ["super+d"], "command": "duplicate_line" },
	{ "keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"} },
	{ "keys": ["super+l"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },

	{ "keys": ["super+shift+b"], "command": "toggle_side_bar" },

	{ "keys": ["super+forward_slash"], "command": "toggle_comment", "args": { "block": false } },
	{ "keys": ["super+shift+forward_slash"], "command": "toggle_comment", "args": { "block": true } },

	{ "keys": ["fn+space"], "command": "auto_complete" },
	{ "keys": ["fn+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 }
		]
	},
	{ "keys": ["ctrl+shift+r"], "command": "reindent", "args": { "single_line": false } },
	{ "keys": ["super+shift+e"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
	{ "keys": ["super+ctrl+e"], "command": "px_to_em" },
	{ "keys": ["shift+alt+d"], "command": "dash_doc"},

	{
		"keys": ["alt+;"],
		"command": "tern_select_variable",
		"context": [
			{"key": "selector", "operand": "source.js"}
		]
	}
]
@yablko

This comment has been minimized.

Copy link
Owner Author

commented Dec 7, 2017

CTRL/CMD + SHIFT + P, "Browse Packages"
do adresára /User vytvor súbor log.sublime-snippet s obsahom

alebo Tools > Developer > New Snippet

<snippet>
	<content><![CDATA[
console.log( $1 );
]]></content>
	<tabTrigger>log</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.