Hi Friends in my last blog i have told how to get Sublime Text 3 Sandwich from Software bakery, In this blog i am going to tell what are all the techniques to eat that sandwich, are you ready to taste this... ya lets go...............
1. Workspace Panes
Are you more a productive coder with multiple files open? ST3, like any good text editor, allows you to see files side by side, so that you won’t be switching back and forth between an HTML file and its CSS document:
Short cut Key : Shift + Alt + UP + 3(no of column)
2. Package Control
ST3 comes with a lot of features out of the box, but you can extend its functionality further with “packages”—plugins written by the greater ST3 community. The easiest way to install these packages is to use Package Control. To install Package Control on ST3, open up the ST3′s console (View => Show Console or CTRL-`) and paste in the following:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Short cut Key : Ctrl + Shift + p
3. Emmet
Emmet makes coding HTML much easier by using shortcuts based on CSS selectors. What does that mean? See for yourself in the GIF below:
Emmet doesn’t stop with HTML tags, classes, and IDs. Lorem ipsum text is something web developers use a lot. Often they’ll head off to a lorem ipsum generator, but with Emmet, just type lorem and hit tab. Want a certain number of filler words (such as 100 words of lorem ipsum)? Use lorem100 instead.
Emmet also extends to CSS. For example, CSS vendor prefixes are always a pain, so Emmet lets you use the shorthand -bdrs to set a border radius:
4. Git
The Git package lets you run Git commands (e.g. “Git Diff” or “Git Blame”) straight from ST3′s Command Palette.
Note: Make sure git package is installed via Package control
5. Better CoffeeScript
There also isn't syntax and snippet support for CoffeeScript in ST3, so this package fills in that gap:
6. Goto Anything
Similar to the command palette, ST3 has the Goto Anything feature (pronounced “go to”) that can take you to a specific file, line, or method definition. Bring up Goto Anything’s search bar with CTRL/⌘-P. To switch between files, start typing the file’s name. Since its a fuzzy search, the search query doesn’t have to match the name exactly and you don’t have to type the whole file path:
7. Selecting Everything Inside an HTML Tag
To select everything inside the current HTML tag.
Short cut Key : Ctrl + Shift + a
8. Switching Lines
Have you ever written code, only to realize that certain lines are out of order? ST3 has a time-saving shortcut that lets you move a given line up or down in a document.
Short cut Key : Ctrl + Shift + Up (move line up)
Short cut Key : Ctrl + Shift + Down (move line down)
9. Spell Checker
I frequently write in code editor, and I also frequently made some mistake in the spelling. If you are like me, you can enable the spell checker in SublimeText in this way.
Go to Preferences > Settings – User in SublimeText, and add the following line.
view plaincopy to clipboardprint?
"spell_check": true,
10 - Launch Sublime From the Terminal
Sublime Text 2 includes a command line tool, subl, to work with files on the command line.
cd myProject
subl .
Over All Short Cut Keys
- General
- Command
- Command pallette
- Toggle comment
- Toggle block comment
- Show completions
- -
- Keypress
- Ctrl + Shift + P
- Ctrl + /
- Ctrl + Shift + /
- Ctrl + Space
- Folding
- Fold/expand
- Unfold all
- Fold all
- Fold level X
- Fold tag attributes
- -
- Ctrl + [ / ]
- Ctrl + K, J
- Ctrl + K, 1
- Ctrl + 2-9
- Ctrl K, T
- File Navigation
- Goto Anything
- Goto Line
- Goto symbol (function name, table, etc.)
- Goto next/prev file
- Goto current selection
- Scroll up/down one line (doesn't move cursor)
- Set Bookmark
- Switch Project
- Clear all bookmarks
- Goto next bookmark
- -
- Ctrl + P
- Ctrl + G
- Ctrl + R
- Ctrl + Pageup/Pagedown
- Ctrl + K, C
- Ctrl + Up/Down
- Ctrl + F2
- Alt + Ctrl + P
- Ctrl+Shift + F2
- F2
- View/Window Manipulation
- Show/Hide Console
- Show/Hide Sidebar
- Fullscreen
- Distraction-free mode
- Set 2, 3, or 4 column layout
- Set 2 or 3 Row layout
- Set 4-pane grid layout
- Set single-pane layout
- Set focused group/pane
- Move current tab/file to pane
- -
- Ctrl + `
- Ctrl + K, B
- F11
- Shift + F11
- Alt + Shift + 2/3/4
- Alt + Shift + 8/9
- Alt + Shift + 5
- Alt + Shift + 1
- Ctrl + 1/2/3/4
- Ctrl + Shift 1/2/3/4
- Find
- Find
- Find Next
- Find previous
- Incremental find
- Replace
- Replace next
- Quick Find (find current word)
- Quick find all
- Use selection for find
- Use selection for replace
- Find in files
- Next result (find in files)
- Previous result (find in files)
- -
- Ctrl + F
- F3
- Ctrl + F3
- Ctrl + I
- Ctrl + H
- Ctrl + Shift + H
- Ctrl + F3
- Alt + F3
- Ctrl + E
- Ctrl + Shift + E
- Ctrl + Shift + F
- F4
- Shift + F4
- Marks
- Set mark
- Select to mark
- Delete to mark
- Swap with mark
- Yank
- -
- Ctrl + K, Space
- Ctrl + K, A
- Ctrl + K, W
- Ctrl + K, X
- Ctrl + K, Y
- Word Manipulation
- Delete word forward/backward
- Delete to end of line
- Delete to beginning of line
- Transpose (switch characters surrounding cursor)
- Close Tag
- Convert to upper/lower case
- -
- Ctrl + Delete/Backspace
- Ctrl + K, K
- Ctrl + K, Backspace
- Ctrl + T
- Alt + .
- Ctrl + K, U/L
- Line Manipulation
- Indent/outdent
- Swap Line Up/Down
- Duplicate Line
- Delete line
- Join Lines
- Cut Line
- Paste cut/copied line above
- Insert line after
- Insert Line Before
- Sort Lines
- Sort lines (case-sensitive)
- -
- Ctrl + ], [
- Ctrl + Shift + Up/Down
- Ctrl + Shift + D
- Ctrl + Shift + K
- Ctrl + J
- Ctrl + X
- Ctrl + V
- Ctrl + Enter
- Ctrl + Shift + Enter
- F9
- Ctrl + F9
- Selection
- Quick select (repeat to add next)
- Undo quick select
- Skip and quick add next
- Split into lines (adds cursor to each line of current selection)
- Add previous/next line
- Expand selection to line
- Expand selection to scope
- Expand selection to brackets
- Expand selection to indentation
- Expand selection to tag
- -
- Ctrl + D
- Ctrl + U
- Ctrl + K, D
- Ctrl + Shift + L
- Alt + Ctrl + Up/Down
- Ctrl + L
- Ctrl + Shift + Space
- Ctrl + Shift + M
- Ctrl + Shift + J
- Ctrl + Shift + A