Saturday, March 1, 2014

Sublime Text 2 extensions - 'git' , 'Github Tools', etc

Before adding any extensions:
1. it is best to install Package Control first
2. to install Package Control, I had to start Sublime Text using admin account (i.e 'sudo' in Ubuntu)

https://sublime.wbond.net/installation#st2

Some useful extensions:

git extension:
------------------
https://github.com/kemayo/sublime-text-git/wiki

Github Tools extension:
------------------------------
From Readme.md:
## Usage ##
Open any directory of your GIT working copy in Sublime Text 2.
* Press `Ctrl + Shift + P` and select `Github: Open File` or just press `Ctrl + Shift + ^` to open currently edited file in Github.
* Press `Ctrl + Shift + P` and select `Github: Blame` to open blame for currently edited file in Github.
Github Color Theme:
---------------------------
https://github.com/alexanderekdahl/github-sublime-theme

Also installed the following:
----------------------------
Color Picker - https://github.com/weslly/ColorPicker
SublimeREPL - https://github.com/wuub/SublimeREPL
BracketHighlighter -https://github.com/facelessuser/BracketHighlighter
Emmet - https://github.com/sergeche/emmet-sublime
Zen Tabs - https://sublime.wbond.net/packages/Zen%20Tabs
Git Gutter - https://github.com/jisaacks/GitGutter

Enable some features that are already in Sublime Text:
    -- we do this by changing the Preferences -> Settings - Default

From http://webdesign.tutsplus.com/articles/simple-visual-enhancements-for-better-coding-in-sublime-text--webdesign-18052

highlight_modified_tabs
To bring more focus to the unsaved files in the current project, this setting will highlight the tabs of the modified files inside a window.
"highlight_modified_tabs": true,
fade_fold_buttons
Did you know Sublime Text can fold and unfold chunks of code? I did, but I always forget that feature is available. If you turn on this setting, it will leave the folding tag to the right instead hiding it.
"fade_fold_buttons": false,

bold_folder_labels

There are some great settings available to bring some stronger visual elements to the side bar, here they are:
"bold_folder_labels": true,

Show Open Files in the Side Bar

Oddly, this option is not set up in the preferences file. To show open files on the top of your side bar, go to:
View → Side Bar → Show Open Files
-------------------------------------------------------------------------------------
Sublime Text Shortcuts:

From http://daker.me/2013/05/5-sublimetext2-packages-to-enhance-your-frontend-development-workflow.html :
Here are some useful Keyboard shortcuts to remember :
  • ctrl+d Select the next occurrence of the selected word
  • ctrl+k, ctrl+b - Toggle the sidebar
  • f11 - Toggle Full Screen
  • shift+f11 - Toggle Distraction Free (this one is my favorite)
  • alt+. - Close Tag
  • ctrl+p - Show the go to overlay panel
  • ctrl+shift+p - Show the command overlay panel
  • ctrl+alt+p - Show the project selector panel
  • ctrl+r - Show the go to overlay panel default to method selector
  • ctrl+g - Show the go to overlay panel default to go to line selector
  • ctrl+; - Show the go to overlay panel default to variable selector
  • ctrl+shift+up - Swap with the line above
  • ctrl+shift+down - Swap with the line below
  • ctrl+/ - Toggle a comment
  • ctrl+shift+/ - Toggle a comment block
  • ctrl+shift+d - Duplicate a line
  • ctrl+` - Display console panel
  • ctrl+space - Auto complete the current selected snippet

No comments:

Post a Comment

Followers

Blog Archive