10x Developer
  • Introduction
  • HTML
    • HTML DOM Jquery
    • HTML: Form
    • CSS
    • CSS Layout
    • CSS Flexbox
    • CSS Grid
    • SASS/LESS
    • CSS/LESS/SASS Cookbook
    • Bootstrap
  • JavaScript
    • JavaScript
    • ES6
    • TypeScript
    • JavaScript Testing
    • JavaScript Event Loop
    • DOM
    • Web APIs
    • JSON
    • RegEx
    • Functional Programming
    • JavaScript Lib
    • CoffeeScript
    • CoffeeScript to ES6 cheatsheet
  • Angular.js
    • Angular
    • Angular Cookbook
    • Angular Mistakes I Made
    • Angular 1.x
  • React.js
    • React.js
  • Node
    • Node.js
    • CLI command line tool
    • Electron / Atom
    • NW.js (node-webkit)
  • Serverless
    • AWS Lambda
    • Google Cloud Function
    • Actions on Google / Google Assistant
  • Full Stack Development
    • HTTP
    • Meteor
    • MongoDB
    • Digital Ocean
    • UI
    • Sketch
    • Web Dev Resources
  • Lang
    • Ruby
  • Know Your Tools
    • Chrome DevTools
    • Editor: VS Code
    • Editor: Vim
    • Editor: Sublime
    • Editor: Atom
    • Windows
    • Git
    • Linux / Bash
    • Mac
  • Cheatsheets
Powered by GitBook
On this page
  • Packages
  • Theme
  • Setup
  • Shortcuts/Tips
  • Pane Management
  • Selections / Multiple line editing
  • Editing Tips
  1. Know Your Tools

Editor: Sublime

PreviousEditor: VimNextEditor: Atom

Last updated 6 years ago

Packages

My preferences and used packages:

  • vim ex mode:

  • git gutter:

  • sidebarenhancement

The following looks good but not tested

Theme

Setup

How to have an "Open with sublime" icon in Finder toolbar?

How to open current folder in command line?

  • then you can use like this: subl .

Shortcuts/Tips

Pane Management

  • ALT+CMD+num: open number of panes

  • CTRL+num: switch to pane

  • CTRL+SHIT+num: move tab to pane

Inside pane:

  • CMD+1/2/3: go to tab, most avtive to tabs

  • SHIFT+CMD+[/]: go to next tab

Use Origami: super+k to start:

  • super+z to zoom, shift+super+z to reset

  • use arrow to switch to panes

    • press shift to carry file.

    • press alt to clone file.

Selections / Multiple line editing

CMD+D

  • select the whole word even you're in the middle

  • hit multiple times will add up selections (multiple edit)

CMD+G: find next (cmd+D first), similar to it but it has visual

CTRL+CMD+G: select all current highlight

CMD+SHIFT+L: split lines in selection, then v to exit visual mode

SHIFT+CMD+SPACE: select parent scope, can I do it in vintage without telling the parent?

Search

symbol search in ST3

Editing Tips

How to remove the bullet points '1./2./3.' for multiple lines?

Old way in vim: line by line.

  • delete on 1st line then j0.

  • or q to record to 1 then 10@1

New way in vim/ST: multiple line editing:

  • select all lines

  • split lines selection: SHIFT+CMD+L

  • v to exit v mode then 0dw

Example:

# FROM:
- US Patent No. 4,136,359: "Microcomputer for use with video display"[41]—for which he was inducted into the National Inventors Hall of Fame.
- US Patent No. 4,210,959: "Controller for magnetic disc, recorder, or the like"[42]
- US Patent No. 4,217,604: "Apparatus for digitally controlling PAL color display"[43]
- US Patent No. 4,278,972: "Digitally-controlled color signal generation means for use with display"[44]

# TO:
US Patent No. 4,136,359: "Microcomputer for use with video display"[41]—for which he was inducted into the National Inventors Hall of Fame.
US Patent No. 4,210,959: "Controller for magnetic disc, recorder, or the like"[42]
US Patent No. 4,217,604: "Apparatus for digitally controlling PAL color display"[43]
US Patent No. 4,278,972: "Digitally-controlled color signal generation means for use with display"[44]

# answer (with vi mode): V -> } -> CMD+SHIFT+L -> v -> 0 -> dw -> ESC

Go to my repo and follow the instructions.

do this [setup](Open current folder in command line, do this

https://github.com/hamxiaoz/my-scripts
http://www.sublimetext.com/docs/2/vintage.html
https://github.com/jisaacks/GitGutte
https://github.com/vkocubinsky/SublimeTableEditor
https://github.com/noklesta/SublimeQuickFileCreator
https://github.com/twolfson/FindPlusPlus
https://github.com/dzhibas/SublimePrettyJson
Monokai-Soda
setup
http://www.cheatography.com/ducondez/cheat-sheets/core-sublimetext/
open-folder-with-sublime