Sublime text feature plug-in recommendation, keep updating!


Since I came into contact with sublime text, I feel that the more I use it, the better I use it. Almost everything related to text editing cannot do without it. This year, I have collected many plug-ins. I dare not enjoy them alone. I will share them with you. I use sublime text 3, and all the following plug-ins are subject to 3.

Although there are many sublimes on the Internet Text’s plug-in recommendation is mostly based on the front-end development, mainly focusing on the development of JavaScript, CSS and HTML. Although I will write some more gorgeous slides in JavaScript for students to see in teaching, the time I spend on JavaScript is still small in general, so the article recommended by this plug-in still has its significance.

All the following plug-ins I recommend can be found and installed directly in package control. Those who don’t like using package control can also be installed on GitHub:

Highly recommended:

Material theme: theme of material interface, let sublime text completely change! Don’t say anything, above!
Sublime text feature plug-in recommendation, keep updating!

Another plug-in is called material theme – App bar, which can also be installed together. In the figure above, a white bar is given to the currently activated window. Sublime text has a bug (not a bug of this theme). After the theme is installed, the input panel will be covered by the status bar below. The solution is very simple. Pull it once with the mouse, and then sublime will recalculate the distance of the sidebar, and then the input panel will display normally.

The following is the introduction of different categories:

Tool classes (available in any language):

ColorSchemeSelector: you can quickly switch sublime’s colorsheme, a necessary plug-in.

OrigamiArtifact! You can manipulate the sublime screen at will, such as left and right split screen, up and down split screen, first up and down, then left and right, then up and down.

Git: the name means everything. People who need it can’t do without it. People who don’t know the meaning don’t have to install the plug-in. This plug-in mainly allows us to directly perform git operations in sublime, such as commit, push, pull, etc. The idea is to only support SSH, so the repository under the HTTP clone may need to manually change git remote set URL origin

GitSavvy: after the GIT plug-in is expanded, many advanced git functions are supported.

GitGutter: with git, you can see your changes every time you edit the document.

Sublimerge Pro: diff artifact. It can be said that it is the best diff software, which automatically separates the screen of sublime text from the left and right, compares the differences between the documents on both sides, and can also synchronize the pull-down on both sides. It’s just paid software. Now it’s said that it’s 25 dollars. Before that, it was only 10 dollars

MacTerminal: the shortcut key can open terminal in the current project position, supporting iterm 2!

Terminality: with terminal, python, C and shell, terminal input can be supported in sublime text. Specifically, without this plug-in, if your Python program needs to accept input from the terminal, such as entering the age of the consumer, an error will be reported when you press Ctrl + B to run it; but now with termination, we can run python, C, Java and shellscript as in the terminal.

QuickMail: a plug-in that can send and receive emails in sublime. It’s very suitable for you to write a piece of code. It’s very convenient to send it directly to your colleagues or friends.

SublimeLinterNeedless to say, this plug-in has many plug-ins and supports syntax error checking and format checking in many languages.

SublimeREPL: repl means read – eval – print loop, which is the interpreter, which is very convenient for debugging. After installation, we can open a window IPython in sublime, so we don’t need the terminal any more. There are also many plug-ins. I implemented the repl of Java and C with this plug-in. Unfortunately, the author of this plug-in is rarely updated. So far, my push is still in pull request.

CnDictChinese and English dictionary software, fast key word search, currently supports Kingsoft and Youdao dictionary.

Hex Viewer: very good binary view and editor.

Ctags: through build index, you can achieve a better “jump to definition” function than the built-in go to definition function.

Whocalledfunctionfinder: Sublime can jump from function name to definition, but cannot jump from definition to function call. This plug-in simulates the reverse operation of ctags, from definition to call. With ctags, it’s almost the same as ide. Of course, ctags and whocalled are just regular matches. They can’t really understand your code.

Note: ctags and whocalled are unnecessary for Python. An anaconda is enough.

BracketHighlighterThere is a joke that the Soviet spies paid a huge price to steal the code of the last screen of Apollo spacecraft and found that it was all}. Java is no more indented than python, and it needs braces to represent the scope, so it is important to have a brace range that can be highlighted. After installing the plug-in, when the cursor moves around the brace, the bracket range will appear on the left side of the screen, which can help us check whether the bracket is missing.

FindKeyConflicts: after too many plug-ins, it’s easy to encounter shortcut key conflicts. This software can find the conflicting shortcut keys for us to solve them.

FuzzyFileNav: Sublime text can be used as a simple file manager.

HiveOpenerThe software developed by Chinese people may be written in Chinese, so it’s not very well-known, but it’s very easy to use. You can set your own shortcut list and open files or folders with shortcut keys.

YouCompleteMe: the previous two plug-ins are based on text analysis, using regular matching to find similar strings. It doesn’t really understand the program. But the emergence of youcompleteme has completely ended this history, and the text editor can also use ide semantic analysis to automatically complete it! After all, this is a client server structure, so it’s a bit complicated to install, but you will never regret it! Ctags can be uninstalled, whocalledfunction can be thrown, Anaconda’s auto completion can also be turned off, and everything will be handed to youcompleteme! Directly support the C family language, python, rust, go, JavaScript and Java can be supported through plug-ins, basically the mainstream languages can be used. I will write a separate article about the installation and coordination of youcompleteme and sublime text.

YCMDCompletion: This is for the youcompleteme backend. However, it is recommended to use it only for semantic analysis of C system language, because Python has anaconda, and rust has rustautocomplete

Class Python

MagicPython: better Python syntax highlighting, similar to Python improved, just choose one.

Anaconda: it is necessary for Python to directly convert sublime text into Python’s lightweight IDE, real-time error correction, check style, automatic completion, and python artifact is not discussed. And the developers are very active. If there is a problem with using this plug-in, submit an issue directly and get a reply soon. I used sublimecodeintel and Jedi before, but later I uninstalled them and changed them to Anaconda’s Python format check and automatic error correction, which has completely surpassed sublimelinker’s pep8 and pyflakes.

Sublimelinter-pep8, sublimelinter-pyflakes: the only feature I didn’t turn on was ananconda’s linter. Because in terms of syntax error checking and format specification, I haven’t found any better plug-ins than pep8 and pyflake of sublimeLinter. With sublimelinter turned on to write python, mom will never have to worry about my code being out of specification again.

PyYapf: sometimes, pep8 and pyflake can’t help. For example, you write a super long call, XXX (XYZ). AAA (BCD). BBB (EFG). CCC Although we all know it’s not good, sometimes the function name or variable name is too long At this time, use pyyapf format once after writing, and it will automatically help you sort out the code, branch, branch and classification.

Class Java:

Javatar: This is similar to the existence of ananconda in Python, although the degree of perfection is far from satisfactory at present. The author said the purpose of the plug-in is to turn sublime into a lightweight Java IDE. From the current use, some of them are implemented, such as autocomplete and syntax highlighting, and check the format with xlint of javac. The new 2.0 prebeta version adds more functions, such as background compilation and so on. Basically, but compared with ananconda’s experience, it’s still relatively rudimentary. But javatar is the best – and only – choice of all our Java plug-ins

SublimeAStyleFormater: automatic formatting for Java, similar to pyyapf above.

Front-end class:

I am not familiar with front-end development, mainly using JavaScript, CSS and HTML to write some web page animations for students to show the economic model. So Emmet, the front-end artifact, is not very useful here (my front-end code volume is not large). The following plug-ins are used:

JSHint: check for JavaScript errors.

CSS3: a better CSS syntax highlighting.

HTML5: a better HTML5 syntax highlight.

JavaScriptNext – ES6: a better JavaScript syntax highlighting.

Livereload: the ultimate weapon! This plug-in is very important. In the browser (chrome, Firefox, Safari also install the corresponding plug-ins), the changes in sublime can be seen in real time in the browser. With livereload, I greatly improved the efficiency of coding. It was painful before. The significance of real-time preview of fine-tuning web elements cannot be overemphasized. Unfortunately, it’s not updated any more

Web Inspector:This is the real hinge artifact. Any livereload is weak and explosive. If it’s not updated, there’s no future to continue to support! Web inspector is better than live reload in all aspects, and it can also debug at a single point!

Class Rust

RustAutoComplete: the semantic analysis of rust is automatically completed based on racer.

Rule: the syntax file of rule has now been integrated into the sublime installation package.

Document / writing:

Latexing: latex writing is the basic of scholars. Latex plug-in is not one of the best latex plug-ins at present. Although it is paid, the price is not expensive, and the support and update are in place. Latexing also supports real-time preview. Under OSX with skim PDF browser, you can compile the source code of latex at any time and locate it on PDF, which is very convenient for writing. With latex, I completely abandoned latex, latex pad and other software, and used sublime text as the main editor of my work.

MarkdownEditing: this book is mainly used to write administrative documents and published books. After being written in markdown format, it can be converted to word, PDF or RTF with pandoc. There are other plug-ins for markdown writing, some of which seem to be more powerful, but I think markdownediting is enough. After all, I use latex to write serious documents. Consider markdown as the main force: markdownpreview

PandocI’ve finished the usage above

WordCount: name means everything. It is a small plug-in that displays word count in the status bar.

Linux Management:

Generic Config: syntax highlighting for Linux config documents.

SFTPAnother artifact. Wbond has really made a lot of contributions to the sublime text community. The existence of this software makes it possible for sublime text to replace vim and Emacs in its work. For example, if I want to manage my blog server remotely, I can use the plug-in SFTP to log in to the remote server with SSH, and use the subsystem of SFTP to sudo to get access to the system files, and then modify the configuration files on the server gracefully on the local sublime, just like modifying the local documents.