Ubuntu installation configuration Sublime_text Getting Started and plugins

Source: Internet
Author: User
Tags change settings sublime text

Wen/Wind Language Enron (Jane book author)
Original link: http://www.jianshu.com/p/2f30ccd41165
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

one. Installation

A few steps to fix the installation

1. Unzip

Tar XF sublime\ Text \2\build\2181\x64.tar.bz2

2. Move files

sudo mv sublime\text\2/opt

3. Terminal open mode (add terminal using sublime Open file)

sudo ln-s/opt/sublime/sublime_text/usr/bin/sublime

4. Add the desktop icon (add to launcher)

sudo gedit/usr/share/applications/sublime.desktop

Write the following code in.

[Desktop Entry]

version=1.0

Name=sublime_text_2

Genericname=text Editor

Exec=sublime

Terminal=false

Icon=/opt/sublime/icon/48x48/sublime_text.png

Type=application

Categories=texteditor;ide;development

X-ayatana-desktop-shortcuts=newwindow

[NewWindow Shortcut Group]

Name=new Window

Exec=sublime-n

Targetenvironment=unity

This one of the icon's path can be in accordance with your preferences to choose a beautiful little icon, the Internet to look for, a lot of cool

5. Default open mode

sudo sublime/usr/share/applications/defaults.list

Turn all the gedit.desktop into Sublime.desktop.

Two: Configuration 1. installation package Management:

See this website:

Https://sublime.wbond.net/installation

Then restart with the reboot message from the console prompt.

2. Common Extension Recommendations

General:

Advanced? New? FileThis plugin allows for faster file creation within a project.

Markdown Previewpreview and build your Markdown files quickly in your Web browser from sublime text 2/3.

GBK Encoding Support supports GBK format to prevent garbled characters

Sidebarenhancementsenhancements to Sublime Text Sidebar. Files and folders.

For front end:

Emmet--emmet officially provided by the Sublime Text extension;

Sublime? linter--code Check Plug-in, support HTML, CSS, JS, PHP, Java, C + + and other 16 languages;

HTML5--HTML5 bundle for Sublime Text 2;

alignment--Code alignment plug-in;

Bracket? highlighter--brackets Highlight match;

git--plug-ins that integrate GIT functionality;

jquery--code smart hint plugin;

less--less code highlighting plugin;

Js? Format--javascript Code format plugin;

Tag--html/xml label indentation, completion and calibration;

livereload--let the page refresh instantly;

Pretty json--json beautification extension;

Can I use--Query the compatibility of CSS properties;

Coffee? Script--coffee? Script code highlighting, verification and compilation, etc.;

Color? picker--cross-platform Color picker plug-in;

For Pythoner:

The package control installs the add-in Bundle manager directly in the Sublime. This is the only plugin you have to install manually. All other plugins listed here can be installed through the package Control. You can also use it to update installed plugins. Simply want to do is Sublime packages apt-get on the line.

Color Scheme–tomorrow nightcolor schemes determines the font color of the editor interface Syntax highlighting. This is a very cool dark line style.

Theme–soda darkthemes affects the color and style of Sublime interface elements. This is a perfect color scheme for tomorrow night.

Sidebarenhancements This plugin provides additional contextual menu options for the sidebar, such as "New File", "New Floder", and so on. These should have been the default, but not.

All autocompletesublime default AutoComplete only focuses on the words of the current file. This plugin expands its AutoComplete word list to all open files.

Sublimecodeintel enhances auto-completion for some languages, including Python. This plugin also allows you to jump to the definition of the symbol, by holding down ALT and clicking on the symbol. Very convenient.

SUBLIMEREPL allows you to run the Python interpreter directly from the editing interface. I tend to run with Bpython in a separate terminal window, but sometimes sublimerepl is helpful.

Gitgutter in the Groove area of the editor, according to Git, add small icons to identify whether a row has been inserted, modified, or deleted. In Gitgutter's readme, there are instructions on how to change the color icon to update your color scheme file.

Pylinter This plugin provides the best pylint editor integration I've ever seen. It automatically checks the. py file whenever it is saved and displays the Pylint violation directly in the editing interface. It also has a shortcut to disable the partial pylint check by inserting a #pylint: disables the comment. This plugin is really useful for me.

Three: Shortcut keys and Tricks

Multiple cursors: Hold down CTRL (the Windows system presses CTRL) to easily edit multiple code at the same time. Click the mouse to click on the target code.

Reopen closed Tags: like Google Chrome, if you accidentally close a tab and want to reopen it, you can press Shift+ctrl+t (under Windows system, press shift+ctrl+t). If you click on the buttons above, St will reopen the tabs in the order in which they are closed.

Quickly open a document: This is probably my favorite feature in St. Press and hold Ctrl+t (Wiondows system, press and hold ctrl+t) to open a text box where you can type the target file in the text box and the system will search for the location of the file in the project. This way you don't have to use the file directory list again.

Jump to Symbol: Press and hold Ctrl+p (under Windows system, press Ctrl+p) to open the search field, type the target symbol, and then click Enter to quickly jump to a specific symbol.

Search the entire project document: Press and hold Shift+ctrl+f (under Windows system, press and hold shift+ctrl+f) to search the directory under the entire St project.

Text/inline Jump: This is the function of the operating system, but I found this feature in the course of using St. On the Macs machine, if you hold down the ALT key while using the arrow keys, you can implement the text instead of the character jumps. Similarly, if you hold CMD while using the arrow keys, you will jump to the other end of the line. This allows you to quickly navigate through the code, even without using a mouse.

Change settings quickly: Press and hold Shift+ctrl+p (under Windows system, press and hold shift+ctrl+p) to open the Quick Find bar to change the settings for St.

The following list is what I added after reading the hacker News comments:

Jump between words: Hold down the CTRL key to allow the cursor to move between the segments-that is, the camel-type (underline) search. For example: If the cursor is at the beginning of the word "cakeparty", then control, click the right ARROW key, you can achieve "E" and "P" jumps between. (thank Hebejebelus)

Move the current line up/down: You can press and hold Shift+ctrl+up/down to move up/down the current line (thanks to draftable)

Sublime Package software control: The theme, syntax, code ... Installation is very useful (thanks to PO)

Quick text Editing: Cmd+d Select the current text and click Cmd+d again to edit the selected text. This feature makes it easy for local variables or HTML tabs to open and close elements to change. (thank haasted)

Micro-find + replace/change: Another useful feature is implemented through Cmd+d/cmd+k+d. Cmd+d automatically searches for an instance that is consistent with the current selection and creates another cursor at the next instance (with this instance selected). Cmd+k+d skips the current selection and jumps directly to the next instance (thanks to toran1302)

Select all instances: Press and hold shift+ctrl+g to select all instances.

Ubuntu installation configuration Sublime_text Getting Started and plugins

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.