Like sublime is a kind of feeling

Source: Internet
Author: User
Tags ultraedit

When I first started working, the project team used ultraedit. I only use ultraedit (UE) for two months,

I have always had a bad impression on ue, but I don't know much about its complete functions. Some functions and configurations have the same position as I expected in the menu and interface.

Is not the same, there is no comfortable color scheme and so on.

Later I used notepad ++, about half a year. Notepad ++ features relatively simple, the interface is more concise than ue, And the shortcut keys are more familiar

With multiple view functions and nppftp plug-ins, the work efficiency has been improved a lot.

Sublime text 2 has been used since November 2012. It is very comfortable, convenient, and strange to use it. Rich functions and

High ease of use: Configure sublime shortcuts, extremely convenient command palette, powerful file and content blurring, etc. This article

The main purpose is to share some of my feelings and experiences when using sublime text 2 in terms of ease of use and other aspects. I hope it will cause your understanding of sublime

. For more information about sublime tutorials, see references at the end of this article.

My Opinion on various text editors is likely to be related to my proficiency and specific work (mainly C ++ and Python development in projects)

Related, not universal, which editor is really suitable for you still need to try it yourself.



1. Low learning costs-simple functions-Quick Start-high usability

The biggest feature of sublime is to make most of the functions simple and easy to use, unlike the bulky ultraedit. Average

Text editors such as ultraedit, notepad ++, and sublime have the same default shortcut keys for some of the same functions.

Inter-device switching is convenient.

In addition, sublime provides some operation methods and functions, such as convenient key bindings, command palette, and goto anything.

Efficiency can be improved: the distance between moving the cursor is shortened, the number of functional items and menus clicked by the mouse is reduced, and repetitive work is reduced.

Heart. In this regard, sublime is somewhat similar to Steve Jobs's design philosophy (but the author of sublime once only worked on Google ).


2. cross-platform

With sublime, people like me who use Mac, windows, and Ubuntu at the same time are very happy and don't have to learn how to use multiple text editors,

You do not have to switch between multiple text editors.

Sublime supports Mac OS X, Windows 32/64 bit, and Linux 32/64 bit

3. Simple find and replace

The sublime search and replacement function does not have a complex check box. It appears at the edge at the bottom of the editor and does not affect the content to be browsed.


4. Command palette Command Panel

Sublime provides a convenient command calling method. Select tool-> command palette, or press the shortcut key Ctrl + Shift + P to call up

Command palette, as long as you simply enter a few letters in the command name, you can immediately find the command that may match, press

Press enter to directly execute, saving the trouble of searching in the menu in sequence. The matching results of command palette include:

Set the programming language for syntax highlighting and snippets for opened text.


5. Goto anything and fuzzy search file search and fuzzy match

Press Ctrl + P or goto-> goto anything to display a concise text area. This feature allows you to quickly

Search for opened files and files in the opened directory, and quickly switch between these files. Enter the letters in the file name.

Speed to get a possible match. I like the fuzzy match function provided by sublime to get the desired result by typing just a few letters.


You can also search for specific text in these files, for example:

After calling goto anything, enter island # treasure to find the treasure in the file whose file name matches Island.

(Source: sublime text unofficial documentation)

Similar functions include:

(1) goto symbol Ctrl + R quickly locate the Function

(2) goto line Ctrl + G to quickly locate the row


6. Multiple practical options

Multiple options are available:

Press ctrl and left-click the text position to be selected. Multiple cursors are displayed, which can be selected simultaneously or across rows.

CTRL + L to select the rows.

Press shift and right-click to select multiple texts, similar to the column mode in Notepad ++.

Press SHIFT + ALT and right-click to remove an option from multiple selections.

7. Multiple layout Modes

You can split the editing window into two columns, three columns, four columns or two rows, three rows, or four cells for viewing and editing files.

8. editing error prompted for Programming Language

Some programming syntax errors are prompted by highlighted colors. For example, if C ++ forgets to add a semicolon to the end when defining a class, it forgets to delete the end comment.

Symbol.


9. key bindings

Sublime makes preferences, key bindings, and macro configuration files in JSON format. Compared with complex interfaces,

It is easier to implement search and simple configuration. But it is still unclear whether this is the design idea of sublime, or whether it may be changed to an interface in the future.

For example, the key bindings configuration allows you to map DIY operations to shortcut keys.

The ing relationship of the shortcut key is saved in the. sublime-keymap file, which can be opened through preferences-> key bindings-default,

Some content in. sublime-keymap is as follows:

  [      { "keys": ["ctrl+shift+n"], "command": "new_window" },      { "keys": ["ctrl+shift+w"], "command": "close_window" },      { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },      { "keys": ["escape"], "command": "hide_auto_complete", "context":  [  { "key": "auto_complete_visible", "operator": "equal", "operand": true }  ]  },  ]

The value of "keys" is a shortcut key combination, and the value of "command" is the command to be executed. More complex parameters include the parameters to be entered.

"ARGs" and command context information "context ".


10. Package Control

Sublime has excellent scalability. If you use python as the extension language and want to make better use of it, you should use

Package control. The purpose of package control is to help sublime users simplify the process of installing and managing plug-ins. It can work with sublime

Perfect combination is a must-have for sublime. You can still operate package control like command palette.


For how to install and use package control, see:


Http://wbond.net/sublime_packages/package_control

Common shortcut keys (Windows/Linux)

1. Press Ctrl + arrow keys to move words

2. Press Ctrl + Shift + direction key to select words

3. CTRL + F3 search for the selected or cursor words

4. F3 search for specific words (the general search process is Ctrl + F3, and then F3)

5. CTRL + Shift + P open command palette

6. CTRL + R locate the symbols in the file

7. CTRL + G locate the row

8. CTRL + P goto anything

9. CTRL + Shift + D copy the row where the cursor is located

10. CTRL + Shift + k Delete the row where the cursor is located

11. Shift + ALT + 2 split the window into two columns

12. Shift + ALT + 8 split the window into two rows

Common shortcut keys (MAC)

For Mac common shortcut can refer to: https://gist.github.com/1207002


Essential plug-ins for sublime text 2

(1) converttoutf8

Sublime only supports utf8 encoding, which can help with GBK, big5, EUC-KR, EUC-JP, shift_jis, etc.

Encoded file

(2) sftp ftp tool, similar to the nppftp plug-in of notepad ++

(3) Sidebar enhancements sidebar function enhancement plug-in, provides a lot of practical file operations.

Sublime Problems

Sublime also has various problems. Of course, it does not mean that it is charged. After all, it can be used completely for free, but occasionally prompts

Purchase only. Even if the fee is paid, it is also a good software that is worth buying and does not affect its outstanding performance.

The real problem is that sublime cannot input Chinese Characters in Linux, and the solution is cumbersome.

Other sublime documents

(1) lucifr blog about sublime text 2 quality content http://lucifr.com/tags/sublime-text/

(2) Various plug-ins https://sublime.wbond.net/


Reference:

1. sublime text 2 documentation Index

Http://www.sublimetext.com/docs/2/

2. sublime text unofficial documentation

Http://docs.sublimetext.info/en/latest/index.html

3. Perfect workflow in sublime text 2: sublime text 2 video tutorial


Https://tutsplus.com/course/improve-workflow-in-sublime-text-2/

4. sublime text 2-useful shortcuts (Mac OS X ):

Https://gist.github.com/1207002

5. sublime text 2-useful shortcuts (Windows/Linux ):


Https://gist.github.com/4441629

6. keyboard shortcuts-Windows/Linux:


Http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html

7. sublime text 2 tips and shortcuts:


Http://robdodson.me/blog/2012/06/23/sublime-text-2-tips-and-shortcuts/

8. sublime text 2 tips and tricks:


Http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/

9. sublime text 2 tips and tricks:

Http://lucifr.com/2011/08/31/sublime-text-2-tricks-and-tips/

Repost this article please indicate the author and the source [Gary's influence] http://garyelephant.me, do not for any commercial purposes!

Author: Gary Gao (garygaowork [at] gmail.com) focuses on the internet, distributed, high-performance, nosql, automation, and software teams

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.