search
HomeWeb Front-endHTML TutorialAn easy-to-use front-end editor-Sublime Text

An easy-to-use front-end editor-Sublime Text

Jul 17, 2017 pm 03:39 PM
front endeditor

Since I learned about websites, I have always used Dreamweaver, no matter how others think Dreamweaver is not good. I still think it is the best code editor I have ever used. First: it has an automatic completion function; second: it has code prompts; third: when creating an HTML document, it can help you automatically complete the document header code. Fourth: Alignment code can be formatted. Sometimes a visual viewing function is also required. Despite its slow response times and huge functionality. But I think there is probably no one on the market that is really better than Dreamweaver. ·

This year I came into contact with another good editor: Sublime Text2.

Sublime Text2 has several advantages:

1. It’s fast.

2. Simple interface.

3. Powerful function.

4. Many plug-ins.

5. Many shortcut keys.

6. You can close it without saving and reopen it for editing next time.

7. The interface is beautiful and can be customized.

Of course, the most important thing is that it has many plug-ins, which makes it have huge functions. When I was learning front-end, like many people, I searched online for what kind of development tools should I choose for front-end development. After searching, almost most of the results recommended Sublime, so I downloaded one, and the download was completed. When I opened it, I saw that the dark form was not gorgeous at all (the Chinese translation of sublime is "gorgeous"). Later, I thought about it and searched on Baidu for a while, and finally understood why so many people said that sublime is easy to use. , a very important reason is its "customizability", is that in sublime, everything you want can be customized and chosen by yourself. Change it yourself; and another feature: quick shortcut key writingSome people may ask, isn’t this just messing around? Everything needs to be done by yourself and fiddled with by yourself. However, when you write the code yourself later, you will understand that all this "faffing around" is necessary. It is very fast to use Sublime to write some simple demo pages. However, Sublime also has obvious shortcomings. It is not convenient for project management and the code prompts are not as powerful as other IDEs.

1. Cross-platform editor .

It also supports Windows, Linux, Mac OS X and other operating systems. It is a lightweight editor and supports various programming languages.

2. Sublime’s plug-in mechanism.

(I won’t go into details about how to install plug-ins here, there are many good articles on the Internet) To be honest, you don’t need to install too many plug-ins. If you install too many plug-ins, it is better to use a professional IDE (Integrated Development Environment) , let me share a few plug-ins that I use with ease; the same sublime plug-in can be installed on either a Windows system or a Mac system after manually downloading it.

Emmet

Emmet This is a must. It can provide quick smart tips for html, css, and js, and also provides various shortcut keys to quickly generate page html page skeletons.

Sublime Server

The way sublime itself browses the page, the default is to access the page using the file path, not http localhost:8080/, which is easy to happen. File path error.

After installing the Sublime Server plug-in, you can use http to access the page. After installation, open it in "Tools - sublime server - star sublime server". After that, right-click on the page and "View in sublimer", you can get the Emmet mentioned above. The plug-in's support for JavaScript code prompts is limited, so you can install the AndyJS2 plug-in to make up for this flaw. Since this plug-in can no longer be searched on the package management tool, you can manually download the plug-in at the download address: After downloading, copy the files in the folder directly to "Preferences - Package", and the installation is completed. At this time, when you write JS code again, you will find that there are many more smart reminders.

Some people may say that smart prompts do not require installing so many plug-ins. Why use sublime? It is better to use an IDE, such as Webstorm or visual studio. However, if you are a novice learning, you want to be more familiar with some syntax and code. , then, please give sublime a try, this "gorgeous smart prompt" O(∩_∩)O

ConverToUTF8If the page is garbled, you can install this plug-in to remove the garbled code, this is also the case A must-have plugin.

AllAutoComplete and PackageResourceViwer

For smart prompts for files in folders, you can set CSS class name prompts by modifying the default configuration of sublime. There is a tutorial address by an expert on Zhihu as follows

C You can also use PackageReSourceviWer to modify the style and font size of the sidebar of the Sublime sidebar. Quickly write

(1) As mentioned above, cooperate with Emmet to quickly generate the page skeleton

Note that you must first click the lower right corner

to select "HTML" format or "ctrl + s" to save the page

Write on a blank page Go to html:xt // Press the tab key on the keyboard to generate the xhtml page skeleton

Write html:5 on the blank page // Press the tab key on the keyboard to generate the html5 page Skeleton

(2) html, CSS, shortcut syntax

There are many, many similar syntaxes, here are a few commonly used ones, and the rest can be found online, there are many.

(3) Edit across lines

Method: In the text that needs to be edited, press and hold the mouse wheel button. Note that you are holding down the mouse wheel button, and then pull the mouse down to the text that needs to be edited. A vertical line will appear in the line of text, and you can start editing at this time, as shown in the picture

For me, Sublime Text is indeed a good code editor, and I will write the other two in the future I also like the editor Visual Studio Code and the IDE Webstorm.

The above is the detailed content of An easy-to-use front-end editor-Sublime Text. For more information, please follow other related articles on the PHP Chinese website!

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
HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The Role of HTML: Structuring Web ContentThe Role of HTML: Structuring Web ContentApr 11, 2025 am 12:12 AM

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor