Skip to content

Latest commit

 

History

History
113 lines (76 loc) · 3.01 KB

README.md

File metadata and controls

113 lines (76 loc) · 3.01 KB

Sublime Settings for a Js Developer

This are my Sublime Text 3 Settings, not perfect but I'm working on this, here are some of the features:

Configuration

Enter your settings folder: Mac: cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User

Linux: cd ~/.config/sublime-text-3/Packages/User

Remove all the content in that folder: rm -rf ./* Note All your settings will be lost, this is the best options if you have nothing to loose, otherwise skip this

Start a new repsitory: git init

Add this repo as remote: git remote add origin [email protected]:teone/sublime-settings.git

If you have not cleared your folder git add . git commit -m "My Config"

Pull! git pull origin master

Resolve eventual conflicts

Installed Packages

Shortcuts

  • super+shift+c ==> toggle_comment
  • super+alt+s ==> surround_selection
  • super+alt+r ==> surround_change
  • super+shift+r ==> expand_selection_to_paragraph
  • super+l ==> lint tags
  • super+ctrl+i ==> indent tag in document
  • super+shift+alt+o ==> todo_review, args: {open_files: true, open_files_only: true}}
  • super+shift+alt+p ==> todo_review, args: {open_files: true}}
  • ctrl+alt+f ==> find_next_conflict
  • ctrl+alt+o ==> keep ours
  • ctrl+alt+t ==> keep theirs
  • ctrl+alt+l ==> list_conflict_files

NOTE For Linux the shortcuts are a bit different, check in Default (Linux).sublime-keymap

Snippets

Any of this come with the ES2015/ES6 version.

Promise Chains

pr | pr6

then | then6

Callbacks

cb | cb6

Console

clog

ngDocs

Just start tiping ngdocs for all the possibilities

BDD

desc

it

be

expect

Nice to Have

  • Bluebird Promisify Snippet
  • ES6 promise Snippet
  • Angular Controller | Services | Directive Snippets
  • Promise Catch Snippet

Helpers

Start logging: sublime.log_commands(True) sublime.log_input(True)

Stop logging: sublime.log_commands(False) sublime.log_input(False)