Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Sublime text - Random Notes
- A few notes to help me get started with Sublime Text.
- - Sublime: http://SublimeText.com/
- - Package Control: http://sublime.wbond.net/browse
- - Documentation: http://www.sublimetext.com/docs/3/
- - UnOfficial Documentation: http://docs.sublimetext.info/en/latest/
- - Perfect Workflow: http://courses.tutsplus.com/courses/perfect-workflow-in-sublime-text-2
- ## Sample Preferences.sublime-settings
- ```json
- {
- // Files
- "default_encoding": "UTF-8",
- "default_line_ending": "unix",
- "detect_indentation": true,
- "enable_hexadecimal_encoding": true, // files containing null bytes
- "always_prompt_for_file_reload": true,
- // Edit, whitespace, indent
- "word_separators": "._/\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",
- "auto_indent": true,
- "tab_size": 4,
- "use_tab_stops": false,
- "translate_tabs_to_spaces": false,
- "trim_automatic_white_space": false,
- "trim_trailing_white_space_on_save": true,
- "smart_indent": true,
- "indent_to_bracket": true,
- "trim_automatic_white_space": false, // inserted by auto-indent
- "draw_indent_guides": true,
- "ensure_newline_at_eof_on_save": true,
- "indent_guide_options": [ "draw_active" ],
- "draw_white_space": "all",
- // Visuals
- "font_face": "Consolas",
- "font_size": 10,
- "word_wrap": false,
- "overlay_scroll_bars": "enabled",
- "highlight_line": true,
- "caret_extra_bottom": 3,
- "caret_extra_top": 3,
- "caret_extra_width": 1,
- "caret_style": "phase",
- "draw_minimap_border": true,
- "always_show_minimap_viewport": true,
- "gutter": true,
- "margin": 0, // between gutter and text
- "line_numbers": true,
- "fold_buttons": true,
- "fade_fold_buttons": false,
- "rulers": [ 80, 128 ],
- "bold_folder_labels": true, // sidebar
- "show_encoding": true, // status bar
- "show_line_endings": true,
- "highlight_modified_tabs": true, // tabs
- "show_tab_close_buttons": true,
- "ignored_packages": ["Vintage"],
- }
- ```
- ## Keyboard Shortcuts
- If there's one shortcut you have to remember, get this one:
- ctrl+shift+p Command palette
- ### Interface
- f11 "toggle_full_screen"
- shift+f11 "toggle_distraction_free"
- ctrl+k ctrl+b "toggle_side_bar"
- ctrl++ "increase_font_size"
- ctrl+- "decrease_font_size"
- ### Copy/paste
- ctrl+c "copy" (current line if no selection)
- ctrl+x "cut" (current line if no selection)
- ctrl+shift+v "paste_and_indent"
- ctrl+k, ctrl+v "paste_from_history"
- ### Undo/Redo/Repeat
- ctrl+z "undo"
- ctrl+u "soft_undo" (moves cursor first)
- ctrl+shift+z "redo"
- ctrl+shift+u "soft_redo" (moves cursor first)
- ctrl+y "redo_or_repeat"
- ### Selection/Cursors
- ctrl+a "select_all"
- ctrl+l "expand_selection" "to": "line" (select line, and moves down)
- ctrl+shift+m "expand_selection" "to": "brackets"
- ctrl+shift+space "expand_selection" "to": "scope"
- ctrl+d "find_under_expand" (add next occurrence of current word to selection)
- ctrl+k ctrl+d "find_under_expand_skip" (skip occurence)
- ctrl+shift+l "split_selection_into_lines" (split the selected block one cursor per line)
- ctrl+alt+up add cursor up
- ctrl+alt+down add cursor down
- ### Search
- ctrl+f "show_panel" "panel": "find"
- ctrl+shift+f "show_panel" "panel": "find_in_files"
- ctrl+i "show_panel" "panel": "incremental_find"
- ctrl+shift+i "show_panel" "panel": "incremental_find" "reverse"
- f3 "find_next"
- shift+f3 "find_prev"
- ctrl+f3 "find_under"
- ctrl+shift+f3 "find_under_prev"
- alt+f3 "find_all_under" (add all occurrences to selection, with cursors)
- ctrl+h "show_panel" "panel": "replace"
- ### Jump to
- ctrl+p Goto anything, #Fuzzy Matching, :Line nĀ°, @Symbol
- ctrl+; Goto word in current file. (Same as ctrl+p #)
- ctrl+g Goto line (Same as ctrl+p :)
- ctrl+r Goto symbols (Same as ctrl+p @)
- ctrl+m "move_to" enclosing brackets
- alt+- "jump_back"
- alt+shift+- "jump_forward"
- ### Bookmarks
- f2 "next_bookmark"
- shift+f2 "prev_bookmark"
- ctrl+f2 "toggle_bookmark"
- ctrl+shift+f2 "clear_bookmarks"
- alt+f2 "select_all_bookmarks"
- ### Spelling
- f6 "toggle_setting" "spell_check"
- ctrl+f6 "next_misspelling"
- ctrl+shift+f6 "prev_misspelling"
- ### Windows Layout/Tabs
- alt+shift+1/2/3/4 "set_layout" 1, 2, 3, 4 columns
- alt+shift+5 "set_layout" grid 4
- alt+shit+8/9 "set_layout" 2 or 3 rows
- ctrl+0 "focus_side_bar"
- ctrl+1/2/3... "focus_group"
- ctrl+shift+1/2/3... "move_to_group"
- ctrl+pgup "next_view"
- ctrl+pgdown "prev_view"
- ctrl+tab "next_view_in_stack"
- ctrl+shift+tab "prev_view_in_stack"
- ctrl+shift+t "reopen_last_file"
- ### Macros
- ctrl+q "toggle_record_macro"
- ctrl+shift+q "run_macro"
- ### Editing
- ctrl+k, ctrl+u "upper_case"
- ctrl+k, ctrl+l "lower_case"
- ctrl+j "join_lines"
- ctrl+shift+d "duplicate_line"
- ctrl+shift+k "Delete Line.sublime-macro"
- ctrl+shift+up "swap_line_up" (move line/selection up one line)
- ctrl+shift+down "swap_line_down" (move line/selection down one line)
- ctrl+/ "toggle_comment"
- ctrl+shift+/ "toggle_comment" "block"
- ### Editor
- ctrl+shift+alt+p "show_scope_name" (in status bar)
- ## Packages
- Some packages i've played with, they can all be installed from [Package Control](https://sublime.wbond.net/installation).
- You can access most settings via the menu Preferences ā Package Settings ā ...
- ### Editing
- #### [Alignment](http://wbond.net/sublime_packages/alignment)
- Easy alignment of multiple selections and multi-line selections.
- ctrl+alt+a "alignment"
- #### [All Autocomplete](https://github.com/alienhard/SublimeAllAutocomplete)
- Extend Sublime Text 2 autocompletion to find matches in all open files of the current window.
- #### [Color Highlighter](https://sublime.wbond.net/packages/Color%20Highlighter)
- ColorHighlighter is a plugin for the Sublime text 2 and 3, which underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color. Also, plugin adds color picker to easily modify colors.
- #### [ElasticTabstops](https://github.com/SublimeText/ElasticTabstops)
- Tab characters automatically adjust to keep adjacent lines aligned.
- ctrl+alt+left "move_by_cells"
- ctrl+alt+right "move_by_cells"
- ctrl+alt+shift+left "move_by_cells"
- ctrl+alt+shift+right "move_by_cells"
- #### [FavoriteFiles](https://github.com/facelessuser/FavoriteFiles)
- Sublime Text plugin to save favorite files.
- Sample Default.sublime-keymap - User
- ```json
- [
- { "keys": ["ctrl+shift+o"], "command": "select_favorite_file" },
- ]
- ```
- #### [Inc-Dec-Value](https://github.com/rmaksim/Sublime-Text-2-Inc-Dec-Value)
- Increase / decrease numbers, dates, hex color values, etc.
- alt-up/down Increase/Decrease number/lowercase/Capitalize/UPPERCASE
- super+alt+up/down Increase all color values
- super+ctrl+up/down Switch from/to #colors/rgba() notations
- #### [Open URL](https://github.com/noahcoad/open-url)
- Description: Open URLs, files, folders, or google text under the cursor or in selected text for Sublime Text.
- ctrl+u Open URL
- #### [SideBarEnhancements](https://github.com/titoBouzout/SideBarEnhancements)
- Enhancements to Sublime Text sidebar. Files and folders.
- f12 Open current file with the default program
- ### [StringEncode](https://github.com/colinta/SublimeStringEncode)
- Converts characters from one encoding to another using a transformation (think HTML entities, not character encodings).
- ### Tools
- #### [PlainTasks](https://github.com/aziz/PlainTasks)
- An opinionated todo-list plugin for Sublime Text editor (version 2 and 3)
- ctrl+enter New Task
- ctrl+i New Task
- ctrl+d Un/Mark as Done
- alt+c Un/Mark as Cancelled
- alt+o Open ./filename
- ctrl+shift+a Archive task
- ctrl+r List of projects
- Sample PlainTasks.sublime-settings - User
- ```json
- {
- "date_format": "(%y-%m-%d %H:%M:%S)",
- "tab_size": 4,
- "translate_tabs_to_spaces": false,
- }
- ```
- #### [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3)
- Interactive code linting framework for Sublime Text 3
- ctrl+k, l "sublimelinter_lint"
- ctrl+k, n "sublimelinter_goto_error" "direction": "next"
- ctrl+k, p "sublimelinter_goto_error" "direction": "previous"
- ctrl+k, a "sublimelinter_show_all_errors"
- ### Languages
- #### [AutoHotKey](https://github.com/robertcollier4/AutoHotkey)
- AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.
- #### [AutoItScript](https://github.com/AutoIt/SublimeAutoItScript)
- AutoItScript AU3 language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build systems for run and compile, Tidy command, IncludeHelper command.
- #### [CSS3_Syntax](https://github.com/y0ssar1an/CSS3_Syntax)
- Sublime Text package for CSS3 syntax highlighting.
- #### [Emmet](https://github.com/sergeche/emmet-sublime)
- Emmet (ex-Zen Coding) for Sublime Text.
- #### [HTML5](https://github.com/mrmartineau/HTML5)
- HTML5 bundle for Sublime Text
- #### [MarkdownEditing](https://github.com/SublimeText-Markdown/MarkdownEditing)
- Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
- Sample Markdown.sublime-settings - User
- ```json
- {
- "translate_tabs_to_spaces": false,
- "trim_trailing_white_space_on_save": true,
- // Layout
- "draw_centered": false,
- "word_wrap": false,
- "rulers": [ 80, 128 ],
- // Line
- "line_numbers": true,
- "highlight_line": true,
- "caret_style": "phase",
- }
- ```
- #### [Markdown Preview](https://github.com/revolunet/sublimetext-markdown-preview)
- Markdown preview and build plugin for sublime text 2/3.
- Sample Default.sublime-keymap - User
- ```json
- [
- { "keys": ["ctrl+shift+g"], "command": "markdown_preview", "args": {"target": "browser", "parser":"github"} },
- ]
- ```
- #### [ModernPerl](https://github.com/Blaizer/ModernPerl-sublime)
- Perl syntax highlighting for Sublime Text that isn't outdated.
- #### [PerlTidy](https://github.com/vifo/SublimePerlTidy)
- perltidy/Perl::Tidy plugin - A Perl script indenter and reformatter.
- Note that if you use cygwin and symlinks for config files and `~/.perltidyrc`, make sure you use windows `mklink` command and not `ln` provided with cygwin.
- ctrl+shift+t "perl_tidy"
- #### [PowerShell](https://github.com/SublimeText/PowerShell)
- Support for the MS PowerShell 2 programming language.
- #### [REG](https://github.com/robertcollier4/REG)
- Windows Registry Script (.reg) Language package for SublimeText. Includes syntax highlighting, comments toggling, declaration snippets, a build system to merge current reg file to registry, and a Jump To Reg Key command.
- Sample REG.sublime-settings - User
- ```json
- {
- "RegKeyJumpCmd": ["C:\\Program Files (x86)\\RegAlyzer\\RegAlyzer.exe"]
- }
- ```
- #### [VBScript](https://github.com/SublimeText/VBScript)
- VBScript package for Sublime Text
- ## Packages list found on the net
- Just took these to have a look at what peoples are using...
- - [Chocolatey ST2.EditorPackages](https://chocolatey.org/packages/EthanBrown.SublimeText2.EditorPackages) and [Chocolatey ST2.UtilPackages](https://chocolatey.org/packages/EthanBrown.SublimeText2.UtilPackages), thanks to [iristyle](https://chocolatey.org/profiles/Iristyle).
- - [Chocolatey ST3.Packages](https://chocolatey.org/packages/jivkok.SublimeText3.Packages), thanks to [jivkok](https://chocolatey.org/profiles/jivkok).
- - [AutoInstall Sublime Packages](https://gist.github.com/vishaltelangre/5075346), thanks to [vishaltelangre](https://github.com/vishaltelangre).
- [AAAPackageDev] (https://github.com/SublimeText/AAAPackageDev) --
- [AdvancedNewFile] (https://github.com/skuroda/Sublime-AdvancedNewFile) --
- [ApacheConf.tmLanguage] (https://github.com/colinta/ApacheConf.tmLanguage) --
- [Auto Encoding for Ruby] (https://github.com/elomarns/auto-encoding-for-ruby) --
- [AutoFileName] (https://github.com/BoundInCode/AutoFileName) --
- [Backbone.js] (https://github.com/tomasztunik/Sublime-Text-2-Backbone.js-package) --
- [BeautifyRuby] (https://github.com/CraigWilliams/BeautifyRuby) --
- [Bracketeer] (https://github.com/colinta/SublimeBracketeer) --
- [BracketHighlighter] (https://github.com/facelessuser/BracketHighlighter) --
- [BufferScroll] (https://github.com/SublimeText/BufferScroll) --
- [ChangeQuotes] (https://github.com/colinta/SublimeChangeQuotes) --
- [Clipboard Manager] (https://github.com/colinta/SublimeClipboardManager) --
- [CodeFormatter] (https://github.com/akalongman/sublimetext-codeformatter) --
- [CoffeeCompile] (https://github.com/surjikal/sublime-coffee-compile) --
- [CoffeeScript] (http://xavura.github.com/CoffeeScript-Sublime-Plugin) --
- [CoffeeScript Function Finder] (https://github.com/edubkendo/sublime-coffeescript-function-finder) --
- [Color Highlighter] (https://sublime.wbond.net/packages/Color%20Highlighter) --
- [ColorPick] (https://github.com/jnordberg/sublime-colorpick) --
- [ColorSchemeSelector] (https://github.com/jugyo/SublimeColorSchemeSelector) --
- [ConsoleExec] (https://github.com/joeyespo/sublimetext-console-exec) --
- [Copy File Name] (https://sublime.wbond.net/packages/copy-file-name) --
- [CSS Less(ish)] (https://github.com/kizza/CSS-Less-ish) --
- [CSS Media Query Snippets] (https://github.com/davezatch/Media-Query-Snippets) --
- [CSS Snippets] (https://github.com/joshnh/CSS-Snippets) --
- [CSScomb] (https://github.com/csscomb/sublime-csscomb) --
- [CSSFormat] (https://github.com/hdemirchian/CSSFormat) --
- [Csslisible] (https://github.com/thierrylemoulec/Sublime-Csslisible) --
- [CSSTidy] (https://github.com/fitnr/SublimeCSSTidy) --
- [CTags] (https://github.com/SublimeText/CTags) --
- [Current Scope] (https://github.com/gumuz/currentscope) --
- [Dayle Rees Color Schemes] (http://daylerees.github.io) --
- [EasyMotion] (https://github.com/tednaleid/sublime-EasyMotion) --
- [ElasticTabstops] (https://github.com/SublimeText/ElasticTabstops) --
- [Emmet] (https://github.com/sergeche/emmet-sublime) --
- [EncodingHelper] (https://github.com/SublimeText/EncodingHelper) --
- [ERB Snippets] (https://github.com/matthewrobertson/ERB-Sublime-Snippets) --
- [ExportHtml] (https://github.com/facelessuser/ExportHtml) --
- [Extract Sublime Package] (https://github.com/SublimeText/ExtractSublimePackage) --
- [FavoriteFiles] (https://github.com/facelessuser/FavoriteFiles) --
- [FileDiffs] (https://github.com/colinta/SublimeFileDiffs) --
- [FindKeyConflicts] (https://github.com/skuroda/FindKeyConflicts) --
- [Gist] (https://github.com/condemil/Gist) --
- [Git] (https://github.com/kemayo/sublime-text-git) --
- [Git Status Files] (https://github.com/mkraft/git-status-files) --
- [GitGutter] (http://www.jisaacks.com/gitgutter) --
- [Hacker News] (https://github.com/timdavies/HackerNews-SublimeTextPlugin) --
- [Haml] (https://github.com/phuibonhoa/handcrafted-haml-textmate-bundle) --
- [HighlightDuplicates] (https://github.com/qur2/HighlightDuplicates) --
- [HTML2Haml] (https://github.com/pavelpachkovskij/sublime-html-to-haml) --
- [HTML5] (https://github.com/mrmartineau/HTML5) --
- [HTMLAttributes] (https://github.com/agibsonsw/HTMLAttributes) --
- [HtmlTidy] (https://github.com/welovewordpress/SublimeHtmlTidy) --
- [Http Requester] (https://github.com/braindamageinc/SublimeHttpRequester) --
- [INI] (https://github.com/clintberry/sublime-text-2-ini) --
- [InsertDate] (https://github.com/FichteFoll/sublimetext-insertdate) --
- [Javascript Beautify] (https://github.com/enginespot/js-beautify-sublime) --
- [JavaScript Snippets] (https://github.com/jprichardson/sublime-js-snippets) --
- [jQuery] (https://github.com/SublimeText/jQuery) --
- [jQuery Snippets pack] (https://github.com/aaronpowell/sublime-jquery-snippets) --
- [JS Snippets] (https://github.com/RadLikeWhoa/JS-Snippets) --
- [JS2Coffee] (https://github.com/nibblebot/sublime-js2coffee) --
- [JsFormat] (https://github.com/jdc0589/JsFormat) --
- [JSHint] (https://github.com/uipoet/sublime-jshint) --
- [JsMinifier] (https://github.com/cgutierrez/JsMinifier) --
- [Keymap Redefiner] (https://github.com/csch0/SublimeText-Keymap-Redefiner) --
- [KeymapManager] (https://github.com/welefen/KeymapManager) --
- [LESS] (https://sublime.wbond.net/packages/LESS) --
- [Less2Css] (https://github.com/timdouglas/sublime-less2css) --
- [Line Completion] (https://github.com/astropanic/Compline) --
- [LineEndings] (https://github.com/SublimeText/LineEndings) --
- [LiveReload] (https://github.com/dz0ny/LiveReload-sublimetext2) --
- [Logs Colorize] (https://github.com/tiger2wander/SublimeText2-Logs) --
- [LoremIpsum] (https://github.com/billymoon/LoremIpsum) --
- [Markdown Preview] (https://github.com/revolunet/sublimetext-markdown-preview) --
- [MarkdownEditing] (https://github.com/SublimeText-Markdown/MarkdownEditing) --
- [Meld diff] (https://github.com/mablo/sublime-text-2-meld-diff) --
- [Missing Palette Commands] (https://github.com/fjl/Sublime-Missing-Palette-Commands) --
- [ModernPerl] (https://github.com/Blaizer/ModernPerl-sublime) --
- [Mojolicious] (https://sublime.wbond.net/packages/Mojolicious) --
- [MoveTab] (https://github.com/SublimeText/MoveTab) --
- [MoveText] (https://github.com/colinta/SublimeMoveText) --
- [Navigation History] (https://github.com/timjrobinson/SublimeNavigationHistory) --
- [Nodejs] (https://github.com/tanepiper/SublimeText-Nodejs) --
- [Open Folder] (https://github.com/mikepfirrmann/openfolder) --
- [Open Recent Files] (https://github.com/spadgos/sublime-OpenRecentFiles) --
- [Open URL] (https://github.com/noahcoad/open-url) --
- [OpenSearchResult] (https://github.com/abrookins/OpenSearchResult) --
- [orgmode] (https://github.com/danielmagnussons/orgmode) --
- [Package Control] (https://sublime.wbond.net) --
- [PerlTidy] (https://github.com/vifo/SublimePerlTidy) --
- [Placehold.it Image Tag Generator] (https://github.com/SubZane/Sublime-Placehold.it) --
- [PlainTasks] (https://github.com/aziz/PlainTasks) --
- [PowerShell] (https://github.com/SublimeText/PowerShell) --
- [Prefixr] (http://wbond.net/sublime_packages/prefixr) --
- [Pretty JSON] (https://github.com/dzhibas/SublimePrettyJson) --
- [Rails Partial] (https://github.com/wesf90/rails-partial) --
- [RecentActiveFiles] (https://github.com/jugyo/SublimeRecentActiveFiles) --
- [Related Files] (https://github.com/fabiokr/sublime-related-files) --
- [Ruby on Rails snippets] (https://github.com/tadast/sublime-rails-snippets) --
- [RubyFormat] (https://github.com/zmbacker/RubyFormat) --
- [RubyToggleString] (https://github.com/jugyo/SublimeRubyToggleString) --
- [Sass] (https://github.com/nathos/sass-textmate-bundle) --
- [SCSS] (https://github.com/MarioRicalde/SCSS.tmbundle) --
- [SCSS Snippets] (https://github.com/npostulart/SCSS-Snippets) --
- [Search Anywhere] (https://github.com/ericmartel/Sublime-Text-2-Search-Anywhere-Plugin) --
- [SFTP] (http://wbond.net/sublime_packages/sftp) --
- [SideBarEnhancements] (https://github.com/titoBouzout/SideBarEnhancements) --
- [Simple Rails Navigator] (https://github.com/noklesta/SublimeRailsNav) --
- [SmartMarkdown] (https://github.com/demon386/SmartMarkdown) --
- [Solarized Color Scheme] (https://github.com/SublimeColors/Solarized) --
- [SortTabs] (https://github.com/bizoo/SortTabs) --
- [StringEncode] (https://github.com/colinta/SublimeStringEncode) --
- [Sublime Files] (https://github.com/al63/SublimeFiles) --
- [SublimeLinter] (https://github.com/SublimeLinter/SublimeLinter3) --
- [SublimeTODO] (https://github.com/robcowie/SublimeTODO) --
- [SublimeWebColors] (http://james.brooks.so) --
- [SublimeXiki] (https://github.com/lunixbochs/SublimeXiki) --
- [SyncedSideBar] (https://github.com/sobstel/SyncedSideBar) --
- [Theme - Soda] (https://github.com/buymeasoda/soda-theme) --
- [Todo] (https://github.com/Nijikokun/todo-tmbundle) --
- [TodoReview] (https://github.com/jonathandelgado/SublimeTodoReview) --
- [Toggle Symbol to String] (https://github.com/zoomix/SublimeToggleSymbol) --
- [TrailingSpaces] (https://github.com/SublimeText/TrailingSpaces) --
- [Twig] (https://github.com/purplefish32/sublime-text-2-twig) --
- [Unicode Character Highlighter] (https://github.com/possan/sublime_unicode_nbsp) --
- [URLEncode] (https://github.com/mastahyeti/URLEncode) --
- [VBScript] (https://github.com/SublimeText/VBScript) --
- [Vintageous] (http://guillermooo.bitbucket.org/Vintageous) --
- [WordCount] (https://github.com/SublimeText/WordCount) --
- [WordHighlight] (https://github.com/SublimeText/WordHighlight)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement