search
HomeDevelopment ToolssublimeHow to use Sublime? Introduction and use of Sublime

The following column sublime tutorial will introduce how to use Sublime, so that everyone can understand what Sublime is and how to use Sublime. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

Sublime Introduction

Sublime Text is a code editor and an advanced text editor for HTML and prose. Sublime Text was developed by programmer Jon Skinner in January 2008. It was originally designed as a Vim with rich extension functions.

Sublime installation

is very simple, just download the corresponding system version from the official website. There is a problem. The official website seems to be very unfriendly to mainland Internet users. It is inaccessible, so you have to manually laugh. After installation, it is actually a trial version installed. How to crack:
Enter license:

—– BEGIN LICENSE —– 
TwitterInc 
200 User License 
EA7E-890007 1D77F72E 390CDD93 4DCBA022 FAF60790 
61AA12C0 A37081C5 D0316412 4584D136 
94D7F7D4 95BC8C1C 527DA828 560BB037 
D1EDDD8C AE7B379F 50C9D69D B35179EF 
2FE898C4 8E4277A8 555CE714 E1FB0E43 
D5D52613 C3D12E98 BC49967F 7652EED2 
9D2D2E61 67610860 6D338B72 5CF95C69 
E36B85CC 84991F19 7575D828 470A92AB

As mentioned above, the power of sublime’s plug-ins is mentioned. Sublime uses package control to uniformly manage installed plug-ins. It seems that the newer version of sublime 3 comes with the package control function by default after activation, so there is no need to install it yourself. In fact, it is very simple to install the package control function:
Open view-show console, open a terminal window similar to terminal, enter the following content to install package control:

import urllib.request,os; 
pf = 'Package Control.sublime-package'; 
ipp = sublime.installed_packages_path(); 
urllib.request.install_opener(urllib.request.build_opener( urllib.request.ProxyHandler()));open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

After the installation is completed, close sublime, restart. The shortcut key command shift p brings up the small plug-in installation window, click install package, enter the plug-in you want to install, such as gist, and press Enter.

Chinese font display is abnormal

As shown below, sublime text Chinese display is abnormal:

How to use Sublime? Introduction and use of Sublime

Looks uncomfortable.
Solution: Change fonts. Programmers all have their own fonts. Personally, I prefer Yahei Consolas Hybrid. It is obviously a mixture of two fonts. It is synthesized from Microsoft Yahei’s Chinese font and Consolas’ English font. Consolas Font is a font developed by Microsoft specifically for programmers.
Setting method: preference——settings, open a json file, add k-v key-value pair:
"font_face":"Yahei Consolas Hybrid"
First make sure you have this font installed on your computer. Download address: http://cloud.alphadn.com/blog/yahei-consolas.zip.

Basic functions

Sublime already has its own code formatting function: Edit -> Line -> Reindent.

The built-in code formatting tool sometimes feels insufficient. For json or xml file content, if you want to see the formatted directory level display content at a glance, you can also install a plug-in, such as indent xml. Sometimes some plug-ins cannot be found in package control. In this case, another way to install the plug-in is needed, by entering the plug-in address. See below for details.

Must-have shortcut keys

sublime installation plantUML tool

PlantUML is a tool for quickly creating UML Graphical components, often used in the design and development of UML diagrams. Whether it is a Mac or Windows platform, to use the drawing function of plantUML, you need to install graphviz first. For the Mac platform, it can be done with one command:

brew install graphviz

Because in sublime's default package manager repository (?), package control Plantuml cannot be found in it, so you need to enter the configuration source yourself (the concepts are all interoperable, similar to npm?).

Steps:

Shortcut key command shift p, enter add repository, find Package Control:Add Repository, enter https://github.com/jvantuyl in the input box that appears below /sublime_diagram_plugin.git, then press Enter and wait for the installation to complete, then restart.

The installation is completed. For a UML text (that is, the text contained between @startuml and @enduml), the shortcut key command m can call up the graphviz renderer to complete the identification and rendering of the text content. Finally drawing. So here’s the problem. The command m shortcut key is the minimized shortcut key on the Mac platform by default.

How to change the shortcut key mapping?

Open Preferences -> Key Binding - User, add a shortcut key:

{"keys":["command+d"],"command":"display_diagrams"}

Configure to hold down Alt d to generate a PlantUML image.

sublime Install a simple go language development environment

Thanks to the popularity of cloud computing, the go language has shined. I’m not sure what the best go language development environment IDE is. After all, I’m not a go language developer. I just debug small projects in my spare time. intellij IDEA performs well, I don’t know about others.

Of course, sublime can also build a go language development environment, but its functions are relatively limited.

sublime text comparison function

In work, it is inevitable to compare the differences between two texts. For simple text comparison, you can use online tools,https://www.diffchecker.com/. For complex text comparisons of large-scale projects involving more than a dozen files, folders as deep as three or four levels, and hundreds or even thousands of files, online tools are obviously not up to the task. I think beyond compare is the best text comparison tool.

The above is the detailed content of How to use Sublime? Introduction and use of Sublime. 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
Sublime Text vs. VS Code: Which is the Best Choice?Sublime Text vs. VS Code: Which is the Best Choice?Apr 15, 2025 am 12:01 AM

Choosing SublimeText or VSCode depends on personal needs: 1. SublimeText is suitable for users who pursue lightweight and efficient editing. It starts quickly but requires a license to purchase. 2. VSCode is suitable for users who need powerful debugging and rich plug-ins. It consumes high resources but is open source and free.

Sublime Text vs. VS Code: Plugin Ecosystems and ExtensibilitySublime Text vs. VS Code: Plugin Ecosystems and ExtensibilityApr 14, 2025 am 12:10 AM

SublimeText and VSCode have their own advantages in plug-in ecology and scalability. SublimeText manages plug-ins through PackageControl, which have a small number of plug-ins but high quality, and mainly uses Python script extensions. VSCode has a huge Marketplace, with a large number of plug-ins and frequent updates. It uses TypeScript and JavaScript to expand, and its API is more comprehensive.

Sublime Text: The Price and Its Value PropositionSublime Text: The Price and Its Value PropositionApr 13, 2025 am 12:06 AM

The license price of SublimeText is $99, which is worth buying because: 1) it provides an efficient editing experience and improves work efficiency; 2) it has a rich plug-in ecosystem to meet personalized needs; 3) it supports cross-platform use and is suitable for different operating systems; 4) it can receive continuous updates and technical support after purchase.

Sublime Text: Customizable and Efficient Code EditingSublime Text: Customizable and Efficient Code EditingApr 12, 2025 am 12:08 AM

SublimeText is a powerful and highly customizable editor. 1) It supports multiple programming languages ​​and provides functions such as multi-line editing, code folding, etc. 2) Users can customize through plug-ins and configuration files, such as using PackageControl to manage plug-ins. 3) Its underlying layer is based on Python, supports multi-threading and GPU acceleration, and has excellent performance. 4) Basic usage includes shortcut key operations, and advanced usage involves macros and Snippets. 5) Frequently asked questions such as failure to install the plug-in, it can be solved by checking the network and updating it. 6) Performance optimization suggestions include cleaning up plug-ins and using cache reasonably.

Sublime Text: License Details ExplainedSublime Text: License Details ExplainedApr 10, 2025 am 09:34 AM

SublimeText's license is a permanent digital key that unlocks all features and removes trial tips. After purchase, it is activated through the official website. The same key can be used for personal use by multiple devices, so you must avoid violations of the terms of use.

Sublime Text Package Control: Mastering Package ManagementSublime Text Package Control: Mastering Package ManagementApr 09, 2025 am 12:08 AM

PackageControl improves the development experience of SublimeText through the following steps: 1. Install PackageControl and use a few lines of command to complete it. 2. Access PackageControl through shortcut keys or menus to install, update and delete plug-ins. 3. Regularly clean and update plug-ins to optimize performance and improve development efficiency. Through these operations, developers can focus on programming and improve the overall development experience.

Sublime Text Project Management: Organizing and Navigating CodebasesSublime Text Project Management: Organizing and Navigating CodebasesApr 08, 2025 am 12:05 AM

SublimeText's project management function can efficiently organize and navigate the code base through the following steps: 1. Create a project file and save the .sublime-project file using SaveProjectAs in the Project menu.... 2. Configure project files, specify the included folders and settings, such as excluding specific files or setting up the build system. 3. Open the project file and quickly load the project environment through OpenProject in the Project menu. 4. Optimize project files to avoid including too many folders, and use the exclusion mode to improve navigation speed. Through these steps, you can use SublimeText's project management capabilities to improve development efficiency and code quality.

Sublime Text Command Palette: Unleash the Power of SublimeSublime Text Command Palette: Unleash the Power of SublimeApr 07, 2025 am 12:17 AM

Using the CommandPalette of SublimeText can improve productivity. 1) Open CommandPalette (Ctrl Shift P/Windows/Linux, Cmd Shift P/Mac). 2) Enter the command keyword, such as "InstallPackage" or "DarkTheme". 3) Select and execute commands, such as installing plug-ins or switching themes. Through these steps, CommandPalette can help you perform various tasks quickly and improve the editing 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)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software