Sublime Text usage Tips

Source: Internet
Author: User

Common shortcut keys

CTRL + L Select Entire row (press and hold-continue to select the downstream)

CTRL + KK Remove from cursor to end of line Ctrl + Shift+k delete entire row

CTRL + SHIFT+D Copy the entire line of the cursor, insert the CTRL + J merge row before the line (multiple rows that need to be merged are selected) Ctrl + KU change to uppercase

Ctrl + KL Change to lowercase

CTRL + D Word selection (press and hold-continue to select the next same string)

Ctrl + M cursor moves to the start or end position within parentheses

CTRL + Shift + M Select the contents of parentheses (press and hold-continue to select the parent bracket) CTRL +/Comment The entire row (if selected, same as "ctrl+shift+/" effect)

CTRL + Shift +/Comment Selected content Ctrl + Z Undo

Ctrl + Y Recovery undo

Ctrl + M cursor jumps to the corresponding parenthesis Alt +. Close the current label

CTRL + SHIFT+A SELECT cursor position parent tag to child CTRL + shift+[collapse Code CTRL + shift+] Expand code CTRL + KT collapse Properties Ctrl + K0 Expand All Ctrl + U soft Undo Ctrl + T-Word Interchange tab Indent Auto-complete Shift + TAB removal indent

CTRL + Shift+↑ with upstream interchange Ctrl + Shift+↓ with downstream interchange

CTRL + K Backspace Delete from cursor to beginning CTRL + Enter cursor after inserting line CTRL + Shift+enter cursor before inserting line CTRL + F2 set bookmark F2 Next Bookmark

Shift + F2 Previous Bookmark

Package control is not seen in the package settings

 
  1. Open Sublime text, press CTRL + ' (that is, ESC under the key, in!) On the left side of the sublime), an input box pops up at the bottom of the text box, enter the following code in the input field and press ENTER:

    Import urllib2,os;pf= ' package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) if Not os.path.exists (IPP) Else None;open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' Http://sublime.wbond.net /' +pf.replace (', '%20 '). Read ())
  2. 2

    Restart Sublime text, if you see the package control item in Preferences---settings, it means that the installation was successful.

  3. 3

    Here is how to use the package Control, the first step, open sublime text, press ctrl+shift+p, enter install to bring up the package control:install package option, press ENTER.

  4. 4

    Find the plugin you want to install in the list and press ENTER to install it

  three) Quick jump to the specified line

CTRL + G, then enter the line number and enter the line. For example, jump to line fifth. or CTRL + P, and then enter:

IV) search function

Press CTRL + R or CTRL + P to execute @. Then fill in the name of the function you want to search

 Front-end rapid development tool: Zend Coding1. Input: Div#wrapper>div.header+div.main+div.footer 2. Press the TAB key at the end of the lineAuto Build: <div id= "wrapper" ><div class= "header" ></div><div class= "main" ></div><div class= "Footer" ></div></div>

Sublime Text usage Tips

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.