Home >Web Front-end >JS Tutorial >Illustrated Sublime Text3 usage tips_javascript tips

Illustrated Sublime Text3 usage tips_javascript tips

WBOY
WBOYOriginal
2016-05-16 15:24:192747browse

I think everyone knows about Sublime tool Web programming, and many people like to use it, because many techniques are very convenient to operate. Let’s introduce how to use some commonly used techniques in development!

1. The most commonly used versions of Sublime are Text2 and Text3. These can be downloaded online, and there are also Chinese versions. The editor uses the Chinese version of Text3. After installation, right-click on the text you want to open. All formats (html, js, xml, txt), etc. can be opened quickly

2. Tip 1: Quick annotation

Select the code that needs to be commented, multiple lines or single lines are optional, and then use "Ctrl+/", or use "Ctrl+Shft+/" to quickly comment. After annotating, click again to access the annotation. The comments here are easier to use than java in eclipse.

3. Tip 2: Quick search

Press and hold the "Ctrl+F" shortcut key to perform a quick search. You can enter the variable name and method name you are looking for under the search box. The positioning is very fast.

4. Tip 3: Thumbnail positioning

We can find that the thumbnail of the entire code can be seen on the right side. Click on the corresponding area to quickly locate it, which is very convenient.

5. Tip 4: Open files quickly

The Ctrl+P shortcut key can quickly open a file. Enter the file name to switch to open. Because we may have more windows open at one time, the Ctrl+P shortcut key can quickly switch to the corresponding file

6. Tip 5: Open the entire project

File -> Open folder -> Select your own project to open the entire project. Here you can view all files in the entire project, making modifications easy

7. Summary:

Sublime can be programmed very conveniently. It is very convenient for writing js and html. You can quickly see the effect in the browser after writing. When Java and web containers, such as tomcat support, are needed, after deploying the project to tomcat, use Sublime opens the deployed project of Webapps under tomcat, so that you can make changes and the effect will be faster. If you make changes, you don't need to wait for myeclipse. Myeclipse is only used to start the deployment. Of course, remember to save it if you make changes. Otherwise, if myeclipse is redeployed, the myeclipse workspace will overwrite the content in tomcat you modified.

Script House would like to remind everyone of the things you need to pay attention to:

It depends on personal habits. If the computer runs fast, myeclipse may also be worth using when programming JS and HTML.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn