Note with either method, you may need to restart Sublime Text 2 for the plugin to load.


Clone or copy this repository into the packages directory. You will need to rename the folder to if using this method. By default, the Package directory is located at:

  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
  • Windows: %APPDATA%/Sublime Text 2/Packages/
  • Linux: ~/.config/sublime-text-2/Packages/


  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
  • Windows: %APPDATA%/Sublime Text 3/Packages/
  • Linux: ~/.config/sublime-text-3/Packages/

Depending on your install on windows, the ST packages path may be

Overriding keyboard shortcuts

Sublime Text is a great text editor with lots of features and actions. Most of these actions are bound to keyboard shortcuts so it’s nearly impossible to provide convenient plugin shortcuts for third-party plugins.

If you’re unhappy with default keymap, you can disable individual keyboard shortcuts with preference of file.

Use a comma-separated list of action names which default keyboard shortcuts should be disabled. For example, if you want to release Ctrl+E (“Expand Abbreviation”) and Ctrl+U (“Update Image Size”) shortcuts, your must set the following value:

You should refer file to get action ids (look for key).

To disable all default shortcuts, set value to :

Not that if you disabled any action like so and you’re create your own keyboard shortcut, you should not use context since this is the key that disables action.

Плагин AdvancedNewFile для Sublime Text 2

Стандартный способ создания нового файла состоит (внезапно) из собственно создания (Ctrl+N) и последующего его сохранения (Ctrl+S). При этом на втором этапе открывается стандартное системное диалоговое окошко, в котором нужно выбрать папку и задать имя для нового файла.

Однако всю вышеописанную процедуру можно значительно упростить, используя плагин AdvancedNewFile. Установить плагин можно как обычно через Package Control: Ctrl+Shift+P → → → Enter.

Плагин установлен и готов к использованию. Теперь достаточно нажать комбинацию Super+Alt+N, после чего в нижней части окошка Sublime появится небольшая панелька. В этой панели достаточно ввести путь к новому файлу (обычно относительно корневой папки текущего проекта) и нажать Enter — и новый файл сохранен.

Advanced Example

The following example shows a custom command,
with the ability to cancel a build and navigate results.

A for a build system should be a
This will provide the instance variable of
to allow interaction with the current project, window and active view.

Please note that the following example is somewhat
simplistic in its implementation, and it won’t handle
many common edge cases.

The following Python can be saved to a file named

The custom can be
configured as a build system using the following JSON
saved to a file named
Packages/User/My Example Build.sublime-build:

Project Format

.sublime-project files are JSON, and support three top level sections: folders, for the included folders, settings, for file-setting overrides, and build_systems, for project specific build systems. An example:


Each folder must have a path key, which may be relative to the project directory, or a fully qualified path. Additional optional keys include:

  • name — A string used in place of the folder name in the side bar.
  • file_include_patterns — A list of strings for filenames to include from the folder. Anything not matching these patterns will be excluded. This is checked before file_exclude_patterns.
  • file_exclude_patterns — A list of strings for filenames to exclude from the folder. This is added to the global setting of the same name. This is checked after file_include_patterns.
  • folder_include_patterns — A list of strings for subfolder paths to include from the folder. Anything not matching these patterns will be excluded. This is checked before folder_exclude_patterns.
  • folder_exclude_patterns — A list of strings for subfolder paths to exclude from the folder. This is added to the global setting of the same name. This is checked after folder_include_patterns.
  • binary_file_patterns — A list of strings for filenames to treat as binary files, and thus ignored in Goto Anything or Find in Files.
  • index_include_patterns — A list of strings for full file paths to index in the folder. This is added to the global setting of the same name. Anything not matching these patterns will be excluded from the index. This is checked before index_exclude_patterns.
  • index_exclude_patterns — A list of strings for file full paths to index in the folder. This is added to the global setting of the same name. This is checked after index_include_patterns.
  • follow_symlinks — If symlinks should be followed when building the folder tree.

Converted projects from earlier versions may have a mount_points entry under folders. If you wish to use the exclude patterns, you’ll need to change to the above format.


Settings may be specified here using the settings key, and will override regular user settings. They will not, however, override syntax specific settings.

Note that only settings in the category may be controlled by a project.

Build Systems

build_systems specifices a list of inline Build Systems definitions. In addition to the regular build system settings, a name must be specified for each one. Build systems listed here will be available via the regular Tools Build Systems menu.

sublime_plugin.ListInputHandler Class

ListInputHandlers can be used to accept a choice input from a list items in the Command Palette. Return a subclass of this from the input() method of a command.

Methods Return Value Description
name() str The command argument name this input handler is editing. Defaults to foo_bar for an input handler named FooBarInputHandler
list_items() or

The items to show in the list. If returning a list of (str, value) tuples, then the str will be shown to the user, while the value will be used as the command argument.

Optionally return a tuple of (list_items, selected_item_index) to indicate an initial selection.

placeholder() str Placeholder text is shown in the text entry box before the user has entered anything. Empty by default.
initial_text() str Initial text shown in the filter box. Empty by default.
preview(value) str or sublime.Html(str) Called whenever the user changes the selected item. The returned value (either plain text or HTML) will be shown in the preview area of the Command Palette.
validate(value) bool Called whenever the user presses enter in the text entry box. Return False to disallow the current value.
cancel() None Called when the input handler is canceled, either by the user pressing backspace or escape.
confirm(value) None Called when the input is accepted, after the user has pressed enter and the item has been validated.
next_input(args) or None Returns the next input after the user has completed this one. May return None to indicate no more input is required, or sublime_plugin.BackInputHandler() to indicate that the input handler should be poped off the stack instead.
description(value, text) str The text to show in the Command Palette when this input handler is not at the top of the input handler stack. Defaults to the text of the list item the user selected.

Theme options

    "material_theme_tabs_autowidth" : true,
    "material_theme_contrast_mode": true,
    "material_theme_compact_sidebar": true,
    "material_theme_compact_panel": true,
    "material_theme_small_tab": true,
    "material_theme_disable_fileicons": true,
    "material_theme_disable_folder_animation": true,
    "material_theme_small_statusbar": true,
    "material_theme_disable_tree_indicator": true,
    "material_theme_bold_tab": true,
    "material_theme_accent_lime": true,
    "material_theme_accent_purple": true,
    "material_theme_accent_red": true,
    "material_theme_accent_orange": true,
    "material_theme_accent_yellow": true,
    "material_theme_accent_indigo": true


These Hotkeys are for Extensions.

Method Key Combo
Markdown Preview ALT + M
HTML-CSS-JS Prettify CTRL + SHIFT + H (use a .jsbeautify globally or perproject)
AdvancedNewFile SUPER+ALT+N Create new file/folders from project rootn
Themr CTRL+F5 Dialog to quickly swap themes
Git CTRL+SHIFT+P Type and run any Git command from current Git Folder.
Terminal CTRL+SHIFT+T Open terminal in current file/folder you have open (You can configure your terminal)
CSSComb CTRL+SHIFT+C Organize the names (Conflicts with ColorPicker Hotkey, remap one or the other)
ColorPicket CTRL+SHIFT+C Open a Color Picker! (Conflicts with ColorPicker Hotkey, remap one or the other)
bs3-subime-plugin type in your editor for a dropdown

User Settings

You can copy my user settings if you like them. Anything prefixed with an underscore means its not being used, that’s because you can’t comment in JSON so it’s there incase you want to use it.

Method Key Combo
Overlay Command Palette (default) CTRL + SHIFT + P
Fuzzy File Search (default) CTRL + p
Show Workspaces (default) CTRL + ALT + P
View File Scope (default) CTRL + R
Go to Definition F12
Next Tab Forward (default) CTRL + TAB
Next Tab Backwards (default) CTRL + SHIFT + TAB
Toggle Sidebar (default) CTRL + (K + B) — Hold CTRL the entire time
Editor Layouts
Info A Column/Row is Considered a Group, a Group contains Tabs which are Files.
1 Edit Columns (default) alt+1
2 Edit Columns (default) alt+2
3 Edit Columns (default) alt+3
4 Edit Columns (default) alt+4
2 Edit Rows (default) alt+8
3 Edit Rows (default) alt+9
4×4 Grid (default) alt+4
Full Screen (default) F11
Distraction Free Mode (default) Shift + F11 (no sidebar)
Find Matching Bracket (default) CTRL + M
Find in File (default) CTRL + F
Find Next (default) F3
Find Previous (default) Shift + F3
Quick Find (default) Highlight Text CTRL + F3
Quick Find All (default) Highlight Text ALT + F3 — Highlights all Occurances
Replace in File (default) CTRL + H
Find or Replace in Folder (default) CTRL + SHIFT + F
Go to Line (default) CTRL + G
Delete Line CTRL + E
Duplicate Line CTRL + D
Move Line Up CTRL + SHIFT + UP
Move Line Down CTRL + SHIFT + DOWN
Moving By Words (default) CTRL + LEFT or RIGHT
Select Words (default) CTRL + SHIFT + LEFT or RIGHT
Remove Word (default) CTRL + DELETE
Fold Scope CTRL + [
Unfold Scope CTRL + ]
Fold Entire Scope CTRL + SHIFT + [
Unfold Entire Scope CTRL + SHIFT + ]
Single Selection (default) ESC (If Multi Select is On)
Expand Selection to Line (default) CTRL+L
Expand Selection to Brackets (default) CTRL+SHIFT+M
Multi Select from Highlight (default) CTRL + SHIFT + L (aka Split into Lines)
Indent (default) TAB or CTRL + ]
Unindent (default) SHIFT + TAB or CTRL + [
Select All (default) CTRL + A


  • Familiar syntax: as a web-developer, you already know how to use Emmet. Abbreviation syntax is similar to CSS Selectors with shortcuts for id, class, custom attributes, element nesting and so on.
  • Dynamic snippets: unlike default editor snippets, Emmet abbreviations are dynamic and parsed as-you-type. No need to predefine them for each project, just type to convert any word into a tag.
  • CSS properties shortcuts: Emmet provides special syntax for CSS properties with embedded values. For example, will be exampled to .
  • Available for most popular syntaxes: use single abbreviation to produce code for most popular syntaxes like HAML, Pug, JSX, SCSS, SASS etc.


Settings are accessed via the Preferences Settings menu item. The left-hand pane contains all of the default settings, along with a description of each. The right-hand pane is where customization can be saved.


The settings in Sublime Text are organized into three categories. The default settings file organizes the settings into sections for easier distinction.

  • Editor Settings: These settings affect the behavior and functionality presented when editing text in a file. Examples include the font_face, tab_size and spell_check. These settings are presented in the first section of the default settings file.
  • User Interface Settings: These settings affect the general user interface, across all open windows. Examples include the theme, animation_enabled and overlay_scroll_bars. These settings are presented in the second section of the default settings file.
  • Application Behavior Settings: These settings affect the behavior of the application, across all open windows. Examples include the hot_exit, index_files and ignored_packages. These settings are presented in the third section of the default settings file.

The User Interface Settings and Application Behavior Settings are global to the entire application and can not be controlled by a syntax specific settings file, nor the settings key in a .sublime-project.

Settings Files

Settings files are consulted in this order:

  1. Packages/Default/Preferences.sublime-settings
  2. Packages/Default/Preferences ().sublime-settings
  3. Packages/User/Preferences.sublime-settings
  4. Packages//.sublime-settings
  5. Packages/User/.sublime-settings

In general, you should place your settings in Packages/User/Preferences.sublime-settings, which is opened in the right-hand pane when selecting the menu item Preferences Settings. If you want to specify settings for a certain file type, for example, Python, you should place them in Packages/User/Python.sublime-settings. This can be accessed via the right-hand pane when a Python file is open, and the menu item Preferences Settings – Syntax Specific is selected.

Syntax Specific Settings

Settings may be specified on a per-syntax basis. Common uses for this are to have different indentation settings or the color scheme vary by file type.

You can edit the settings for the syntax of the current file by selecting the Preferences Settings – Syntax Specific menu item.

Note that only Editor Settings can be specified in syntax specific settings.

Per-project Settings

Settings can be set on a per-project basis, details are in the Project Documentation.

Note that only Editor Settings can be specified in project settings.

Distraction Free Settings

Distraction Free Mode has an additional settings file applied (Distraction Free.sublime-settings). You can place file settings in here to have them only apply when in Distraction Free Mode – access it from the Preferences Settings – Distraction Free menu item.

Changing Settings with a Key Binding

The toggle_setting command can be used to toggle a setting. For example, to make a key binding that toggles the word_wrap setting on the current file, you can use (in Preferences Key Bindings):

The set_setting command can be used to set a setting to a specific value. For example, this key binding makes the current file use the Cobalt color scheme:

The settings modified here are buffer specific settings: they override any settings placed in a settings file, but apply to the current file only.


As settings can be specified in several different places, sometimes in can be helpful to view the applied setting that’s actually being used by the current file. You can do this by using the console:

Словари и орфография

Если нам часто приходится работать с текстом, писать, например статьи через блокнот, то на помощь приходят словари и проверка орфографии. Слова будут подчеркиваться пунктиром в случае, если по версии словаря, они написаны неправильно. К сожалению, запятые и пунктуацию проверять словари не умеют и не всегда правильно находят ошибки в словах.

Сам словарь должен состоять из двух файлов: .aaf и .dic, которые содержат набор букв и слов для проверки орфографии.

Устанавливаются еще проще: скачиваем необходимые файлы, закидываем в папку %appdata%/Sublime Text/Packages, открываем в блокноте: Вид-Словарь и выбираем как на скриншоте ниже. Для себя я создал отдельную папку Dictionares и туда закинул все файлы словарей.

В свою сборку вложу несколько словарей, а также вот вам ссылки на некоторые словарики:https://github.com — пак словарей под стhttp://extensions.openoffice.org — многообещающий словарь, подчеркивающий все подрядСборка из статьи на хабре от kaktyc0913

Теперь, после установки необходимых словарей в файле, где необходимо включить проверку орфографии жмем F6

Ниже выкладываю свою сборку Sublime Text на момент написания статьи в которую вошли следующие элементы:

  • файлы русификации скачаны тут;
  • свои конфигурационные файлы;
  • плагин Golden Ratio (лень было вырезать);
  • словари;
  • переделанное контекстное меню;
  • инструкции и т.д.;
  • набор светлых цветовых схем;
  • свою цветовую схему Sublime_notepad2;


init.py creation:

This plugin may optionally create in the created directories. Please reference to see the default key bindings to do this.

Tab Autocompletion:

After typing in a partial path, simply press tab to autocomplete it. Continue to press tab to cycle through the options.

Advanced Path Usage


You can create an alias to quickly navigate to a directory. Simply type in the alias followed by a colon. Then specify the path as you would normally. Note, in an event a specified alias conflicts with a , the specified alias will take precedence.

Alias paths may be relative or absolute. If a relative path is specified, the setting will be used as the base. When specifying absolute paths, be sure to use the system specific style (e.g. Windows , OS X and Linux ). In addition, you may specify an alias from the home directory by using .

If an invalid alias is specified, an error pop up will be displayed when trying to create the file.

Sample aliases:

To use the above alias, when specifying a new file enter , which would then create a file at .

Platform Specific Aliases

You can also create aliases that are platform specific. These follow a similar set of rules as aliases. However, rather than specifying a string path to use, a dictionary is specified. This dictionary may contain the following keys: , , and . The path for this particular alias will be used based on the operating system in use. If the same alias is specified in both and , the path in will be used.

Sample OS Specific Aliases:

Predefined Aliases
Top level folders in window

Top level folders can be specified by typing in the name of the folder followed by a colon. Then specify the path as you would normally.


In Sublime Text 2, the name of the folder will be the actual name of the folder, not an arbitrary name specified in the project. However, due to an API update, folder names in Sublime Text 3 will match the Side Bar names. To achieve a similar behavior in Sublime Text 2, you can create for .

Current Working Directory

To specify the current working directory, simply type a colon, without any preceding text. Alternatively, set to in your settings. Paths specified as relative paths will then begin from the current working directory.


Git Integration New!

  • Files and folders in the sidebar will now display badges to indicate Git status
  • Ignored files and folders are visually de-emphasized
  • The current Git branch and number of modifications is displayed in the status bar
  • Commands have been added to open a repository, see file or folder history, or blame a file in Sublime Merge
  • Themes may customize the display of sidebar badges and status bar information
  • The setting show_git_status allows disabling Git integration
  • All file reads are done through a custom, high-performance Git library written for Sublime Merge
  • Read the documentation

Incremental Diff New!

  • All changes to a document are now represented by dedicated markers in the gutter
  • Diff markers show added, modified and deleted lines
  • The setting mini_diff controls incremental diff behavior
  • In coordination with the new Git functionality, diffs can be calculated against HEAD or the index
  • The git_diff_target setting controls base document source
  • API methods View.set_reference_document() and View.reset_reference_document() allow controlling the diff
  • The following diff-related commands were added:

    • Next Modification
    • Previous Modification
    • Revert Modification
  • Full inline diffs of each change can be displayed via the right-click context menu, or keyboard shortcuts
  • Inline diff presentation can be changed by customizing a color scheme
  • Read the documentation

Editor Control

  • Added block_caret setting
  • Improve positioning and sizing of gutter icons in some situations
  • Fixed draw_minimap_border setting not working
  • Linux: Improved input method (IM) support — fcitx, ibus, etc
  • Linux: Fixed a crash when using GTK_IM_MODULE=xim
  • Linux: Tweaked behavior of up/down when on the first and last lines of a file to better match platform conventions
  • Windows: Improved IME support


  • Enhanced the .sublime-theme format:

    • Added variables support and associated revised JSON format with variables key
    • Added extends keyword to have one theme derive from another
    • Colors may be specified via CSS syntax
  • Improved performance with large numbers of rules in a .sublime-theme
  • Linux: Moved to GTK3
  • Linux: Various high DPI fixes
  • Mac: Added Mojave support
  • Mac: Add full support for macOS native tabs
  • Mac: Ensure context menus are shown without scrolling
  • Mac: Error message dialogs can now be closed with the escape key
  • Mac: Improved window placement
  • Mac: Improved resize performance
  • Windows: Fixed minimized and maximized state not restoring
  • Windows: Fixed a bug where auto complete entries would contain an ellipsis when not required

Text Rendering

  • Support for Unicode 11.0
  • Improved rendering of combining characters
  • Fixed a caret positioning bug when non-trivial graphemes are present
  • Fixed some cases of incorrect glyph positions on Windows and Mac
  • Linux: Color glyphs are now drawn properly on light backgrounds
  • Windows: Fixed a rendering issue with certain combining characters
  • Windows: Fixed some fonts having an incorrect baseline

Color Schemes

  • Added block_caret key to use in conjunction with block carets
  • caret values now respect alpha as expected, rather than pre-blending against the background color
  • Added the foreground_adjust property to rules with a background. Accepts CSS color mod adjusters to manipulate the saturation, lightness or opacity of the foreground color.

Syntax Highlighting

  • Many syntax highlighting improvements, including significant improvements to:
    • Clojure, with thanks to Nelo Mitranim
    • D
    • Go, with thanks to Nelo Mitranim
    • Lua, with thanks to Thomas Smith
  • Fixed a crash that could occur when nesting embed patterns in .sublime-syntax files
  • Syntax Tests: Allow syntax test files to have a UTF-8 BOM

Files and Folders

  • Improve performance of file watching for ignored paths on Windows and Mac
  • Windows: Fixed Open File treating paths as case-sensitive
  • Windows: Properly unlock directories after contained files are closed


  • Added View.set_reference_document() and View.reset_reference_document() to control diff generation
  • Phantoms are now drawn correctly in conjunction with draw_centered
  • Various minor improvements related to plugin module loading and unloading
  • Added support for hwb() colors to minihtml
  • Added a custom min-contrast() adjuster for the CSS color mod function in minihtml
  • Mac: Fixed a plugin_host crash when running a process that itself crashes


  • Fixed a Goto Symbol in Project performance regression
  • F21..F24 keys can now be bound
  • Assorted minor fixes and stability improvements
  • Linux: Improved behavior of --wait command line argument when Sublime Text isn’t currently running
Ссылка на основную публикацию