Ubuntu installation Sublime Text and common plugins recommended

Source: Internet
Author: User
Tags sublime text sublime text editor

has been using the Code Blocks this IDE tool, usable or feel not good, so found an article on the Internet, the above introduced a lot of Ides, I found sublime Text feel very good.

Post Address: Http://www.csdn.net/article/2014-02-27/2818564-best-compilers-and-ides-for-c-programmers

Sublime Text makes it easy to manage multiple projects. Using the sublime text projects, you can organize files of different root directories into a project without having to put all the files under one root directory.

1. Create a project

Project > Add Folder to Project

The file directory that you just added will appear in sidebar, and if you need to add additional directories, repeat this.

2. Save the Project

Project > Save Project as

After clicking Save Sublime text will automatically generate two files:

      • Project_name.sumlime-project: Contains the project definition, which is recorded in version control.
      • Project_name.sublim-workspace: Contains the user's engineering data, such as open files and modifications, which are not recorded in version control.

In the *.sublime-project file, you can define the project configuration. For example, you can define multiple directory paths, or which directories or files need to be excluded. For example:

Two directories are defined in the *.sublime-project file above, and the "name" tag is the name that the directory displays in the sidebar of sublime text. By defining "name", you can display some long-path or long-named directories in sidebar with a more concise name.

3. Switching Engineering

If you have several projects to develop at the same time, there are two ways you can open the project you need to work with:

      • Start Sublime Text, click Project > Open Project, locate the *.sublime-project file, and turn it on.
      • Start Sublime Text, use Ctrl + Alt + P shortcut, you will get a search box that lists all the project names that have been opened, select the project and open it.

PS: If you use sublime text editor *.sublime-project,sublime text will automatically load the project, it is recommended to use a different text editor to edit the *.sublime-project.

Plug - ins

You can find sublime text in the program by pressing the win key in unity.

Press Ctrl+shift+p to open the Plugins manager. Enter install, you should be able to see the package control ~ Enter.

In the next page that pops up, you can enter the name of each plugin to install it.

Modify the configuration of each plugin in the sublime text menu Preferences->package settings-> plug-in name->xxx settings.

Generally have xxx-default and xxx-user, generally from the default in the need to modify the items pasted into the user to modify, the user profile is higher than the priority of the default.

What I used to use:

Brackethighlighter

Highlight matching brackets, quotes, and labels. You can highlight matching brackets, quotes, and tags on the left, match the [], (), {}, ",", <tag></tag> and so on, and even custom tags, when you see the dense code is not clear about the inclusion of nested relationships between the tags, this plug-in can be a good way to help you Clear code structure, quickly locate brackets, quotes, and range within tags.

Alignment

Equal sign Alignment

Usage:
According to Ctrl+alt+a, you can use the messy code as the equals sign about it, suitable for a friend with code cleanliness. If the key conflict, you can modify the key-binding, change shortcut keys.

trailingspaces

Highlight the extra Space and tab, sometimes in the end of the code more than a few space or tab, generally do not notice, trailingspacer this plugin can highlight the extra Space and tab, and can delete them with a button, the code neat friends should like this plugin.

ConvertToUTF8

We want to install a plugin that supports UTF8 encoding, just enter convert in the input box, automatically match, select ConvertToUTF8 plug-in, enter, wait, install complete, so that St support UTF-8 encoded.

Ubuntu installation Sublime Text and common plugins recommended

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.