Introduction to sublime text, full set of shortcut keys, and plug-in recommendations:

Source: Internet
Author: User
Introduction to sublime text, full set of shortcut keys, and plug-in recommendations:

Original article address: big front-end» sublime
Introduction to text, full set of shortcut keys and plug-in recommendations

NOTE: If notepad ++ is a good code artifact, sublime text should be called an artifact. The biggest advantage of sublime text is that it can be used perfectly across platforms, both Mac and Windows. The second is powerful plug-in support, which is almost omnipotent.

Start using sublime text:

Sublime text has the dev version, which is recommended for use. We generally recommend you download the portable version, which is convenient and does not need to be installed. The plug-in and the subject are in the same directory, portable.

Sublime text shortcut:

  • CTRL + Shift + P: Open the Command Panel
  • CTRL + P: Search for files in the project
  • CTRL + G: the row to jump
  • CTRL + W: Close the currently opened file
  • CTRL + Shift + W: Close all open files
  • CTRL + Shift + V: paste and format
  • CTRL + D: select a word. If you repeat a word, you can add and select the next same word.
  • CTRL + L: select a row. You can add and select the next row in sequence.
  • CTRL + Shift + L: Select multiple rows
  • CTRL + Shift + enter: Insert a new row before the current row
  • CTRL + X: Delete the current row
  • CTRL + M: Jump to the corresponding brackets
  • CTRL + u: Soft undo, undo cursor position
  • CTRL + J: Select TAG content
  • CTRL + F: Search for content
  • CTRL + Shift + F: Find and replace
  • CTRL + H: replace
  • CTRL + R: Go to Method
  • CTRL + N: New window
  • CTRL + K + B: Switch sidebar
  • CTRL + Shift + M: select the content of the current bracket.
  • CTRL + F2: Set/delete tags
  • CTRL +/: comment out the current row
  • CTRL + Shift +/: insert comments at the current position
  • CTRL + ALT +/: block annotation, focus on the first line, and write the annotation description
  • CTRL + Shift + A: before and after the current label is selected
  • F11: Full Screen
  • Shift + F11: In Full Screen mode, only the current file is edited.
  • Alt + F3: select all the same words
  • Alt +.: Closed tag
  • Alt + Shift + number: split screen display
  • Alt + number: Switch to open the nth File
  • Shift + right-click and drag: the cursor is mostly not used to change or insert column content
  • You can switch the tab file with the forward and backward keys of the mouse.
  • Press ctrl and click or select one by one. You can edit multiple locations.
  • Press Ctrl + Shift + up/down to replace rows
Sublime text settings:
  • Setting user
    The following are

    {"font_face": "courier new","font_size": 9.0,"highlight_line": true,"scroll_past_end": false,"tab_size": 4,"theme": "Soda Dark.sublime-theme","word_wrap": true}
Sublime text Plugin:

We recommend that you enable package control first, which is very convenient when installing the plug-in. Enable this function: Choose menu bar-View-show console, paste the following code, press enter, and restart sublime. If your network cannot be enabled, you cannot use it. Search and download it manually (your network is also blocked ?).

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())

Start to install some useful plug-ins, CTRL + Shift + P (menu-tools-command paletter), enter install, select install package, and press Enter, enter or select the plug-in you need and press enter to install the plug-in (note the small text changes in the lower left corner and prompt the installation is successful). This is also the method for installing other plug-ins, which is very fast.

  • Zencoding
    I have to use a front-end development plug-in, write less, show more. can be directly used after installation, triggered by the tab key, ALT + Shift + W is a code machine.
  • Alignment
    Code alignment, such as writing several variables, selecting these lines, CTRL + ALT + A, wow, all.
  • Prefixr
    You can add private suffixes such as-WebKit automatically when writing CSS, and press CTRL + ALT + X to trigger them.
  • Tag
    HTML format, right-click auto-format tags on ducument.
  • Clipboard history
    Clipboard history, show more historical copies, CTRL + Shift + V triggered.
  • Sidebarenhancements
    The function of right-click the sidebar is enhanced, which is very practical.
  • Theme-soda
    The perfect encoding topic, once used, said "theme": "soda dark. sublime-Theme" added to the setting user"
  • GBK to utf8
    Convert the file encoding from GBK to utf8, and find the file in the menu-file.
  • SFTP
    Directly edit the files on the FTP or SFTP server.
  • WordPress
    Integrating some WordPress functions is especially useful for people like me who often need to write WP templates and plug-ins.
  • Phptidy
    Organize PHP code
  • Yui Compressor
    Compressing JS and CSS files

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.