It is easy to get started, not easy to get started, and can be cherished
Introduction: This is just a good text tool.Sublime textFor more information, see this book Sublime productiand some blogs.
Some basic functions 1. side bar
The Side bar is used to add a file browser to the original sublime. You can use it to conveniently browse and delete files and switch between files.
The Command to open and close the Side Bar is Command + K, Command + B. Of course, you can also open and close it through the Menu Bar (for Dummies, do not talk about it)
Side Bar has an enhanced plug-in SideBarEnhancements. You can use Package Control to install it (what! No, continue reading)
2. Package Control
What package control? This is a tool for installing and managing plug-ins. This plug-in is not available for the first installation of sublime text. You can run the following command to install the plug-in (use the shortcut key "control + Uninstall" to open the command line, combine the following code into one day, and press Enter). Of course, you can also directly download the plug-in and install it, this is not introduced.
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
The plug-in I use is recommended here.
- SideBarEnhancements provides context menu options attached to the sidebar, such as "New file" and "New Floder.
- SublimeCodeIntel provides auto-completion functions for some languages, including Python. This plug-in also allows you to jump to the symbolic definition, by holding down alt and clicking the symbol. Very convenient.
- SublimeREPL allows you to directly run the Python interpreter on the editing page. I tend to use bpython to run in a separate terminal window, but sometimes SublimeREPL is very helpful.
- The Pylinter plug-in provides the best pylint editor integration I have ever seen. It automatically checks the. py file whenever it is saved and displays the pylint violation on the editing page. It also provides a shortcut to disable partial pylint checks by inserting a # pylint: Disable annotation. This plug-in is really useful to me.
- BracketHighlighter is paired with the following symbols: curly braces {}, brackets [], parentheses :(), and quotation marks. When we move the cursor over the start symbol, we hope to clearly see where the end symbol is. The sublime is underlined by default, which is not obvious. To be clear, we can install the plug-in BracketHighlighter.
- The GBK Encoding Support plug-in enables sublime to Support gbk2312 and gbk Encoding.
- The Goto Documentation plug-in can help us quickly view the manual.
3. editor
Go to file volume + T
Go to project pipeline + P
Go to method labels + R
Command prompt warning + P
Go to rows + G
Console producer + consumer
Select rows (repeated) distinct + L
Select words (repeated) else + D
Select the content of the brackets "margin + M ".
Insert forward + forward in front of current row
Insert rows + rows after the current row
Delete row Limit + K
Delete the cursor from the cursor to the end of the row + K
Delete the cursor from the cursor to the beginning of the row + K + del
Copy multiple rows + D
Merge multiple rows + J
Change to uppercase Limit + K + U
Change to lower case Limit + K + L
Comment pipeline +/
Block comment +/
Restore or repeat restore + Y
Paste and auto indent labels + V
Soft undo worker + U
Soft redo worker + U
Find pipeline + F
Replace signature + F
Find the next content that matches the selected region + G
Search for all the content that matches the selected content and edit the cursor + G
Search for images + Images + F in all open files
Split Single Column shard + 1
Split dual-row shard + 2
Split grid shard + 5
Move focus to n groups of workers + [1, 2, 4]
Move the current file to n groups of workers + [1, 2, 4]
Select "tabs" + [1, 2, 3...]
Set marker + K + space
Remove from cursor position to mark cursor + K + W
Select from the cursor position to mark cursor + K +
Clearly mark shard + K + G
Original address