search
HomeDevelopment ToolssublimeSublime text3 usage tips (installation and common settings)

The following is the tutorial column of sublime to share with you the tips for using sublime text3. I hope it will be helpful to friends in need!

Sublime text3 usage tips (installation and common settings)

#Introduction<span style="font-size: 14px;"></span>

Sublime Text: An editor software with code highlighting, syntax prompts, automatic completion and fast response. It not only has a gorgeous interface, but also supports plug-in extension mechanism. Use Sublime Text elegantly, and plug-ins are It is an indispensable existence. It is definitely a pleasure to write code with her. <span style="font-size: 14px;"></span>


Installation and activation<span style="font-size: 14px;"></span>

  1. Official website download: sublime text3;<span style="font-size: 14px;"></span>
  2. Open the .exe file for installation. Remember to select "Add to explorer context menu" and add it to the right-click shortcut menu. Others default to the next step; <span style="font-size: 14px;"></span>
  3. On the Internet Find the latest Sublime Text3 activation code, as follows: <span style="font-size: 14px;"></span>

    —– BEGIN LICENSE —– Michael Barnes
    Single User License
    EA7E-821385
    8A353C41 872A0D5C ​​DF9B2950 AFF6F667
    C458EA6D 8EA3C286 98D1D650 131A97AB
    AA919AEC EF20E143 B361B1E7 4C8B7F04
    B085E65E 2F5F5360 8489D422 FB8FC1AA
    93F6323C FD7F7544 3F39C318 D95E6480
    FCCC7561 8A4A1741 68FA4223 ADCEDE07
    200C25BE DBBC4855 C4CFB774 C5EC138C
    0FEC1CEF D9DCECEC D3A5DAD1 01316C36
    —— END LICENSE ——

  4. Open the Sublime menu > help > enter License and enter the activation code. <span style="font-size: 14px;"></span>

  5. Re-open sublime text3, if enter License changes to remove License activation is successful

Common settings

  • Set the default encoding format to UTF-8
    1. Select menu Preferences->(Settings)-User;
    2. Add the following line of code in curly braces: "default_encoding": "UTF-8";
  • sublime text 3Set font
    1. Select menu Preferences->(Settings)-User;
    2. Add "font_face": "Consolas","font_size": 12 ;
  • My Preferences->(Settings)-User settings
<span style="font-size: 14px;">{<br/>    "auto_complete": true,<br/>    "auto_match_enabled": true,<br/>    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",<br/>    "default_encoding": "UTF-8",<br/>    "font_face": "Consolas",<br/>    "font_size": 14,<br/>    "ignored_packages":    [        "AndyJS2",        "Vintage"<br/>    ],<br/>    "theme": "Adaptive.sublime-theme",<br/>    "update_check": false}<br/></span>

Shortcut keys

  • Swap up and down: <span style="font-size: 14px;">Ctrl sh~ift ↑↓</span>
  • Cursor selection: <span style="font-size: 14px;">Ctrl alt ↑↓</span>
  • Copy the entire Go to next line: <span style="font-size: 14px;">ctrl shift d</span>
  • Indent right:<span style="font-size: 14px;">Tab</span>
  • Indent left: <span style="font-size: 14px;">Shift Tab</span>
  • Delete an entire line:<span style="font-size: 14px;">Ctrl Shift K</span>
  • Comment a single line: <span style="font-size: 14px;">Ctrl /</span>
  • Comment multiple lines:<span style="font-size: 14px;">Ctrl Shift /</span>
  • Undo:<span style="font-size: 14px;">Ctrl Z</span>
  • ##Undo:Ctrl Y<span style="font-size: 14px;"></span>
  • ##Search keyword:Ctrl F<span style="font-size: 14px;"></span>
  • Open the search box:Ctrl P<span style="font-size: 14px;"> </span>
      Enter the file name in the current project to quickly search for files
    1. <span style="font-size: 14px;"></span>
    2. Enter
    3. <span style="font-size: 14px;"></span>@<span style="font-size: 14px;"></span> and keywords to find the function name <span style="font-size: 14px;"></span>
    4. in the file. Enter
    5. <span style="font-size: 14px;"></span>:<span style="font-size: 14px;"></span> and the number to jump to the file. In this line of code <span style="font-size: 14px;"></span>
    6. , enter
    7. <span style="font-size: 14px;"></span><span style="font-size: 14px;"></span># and keywords to find the variable name <span style="font-size: 14px;"></span>
  • Open the command box:Ctrl Shift P<span style="font-size: 14px;"></span>
  • Exit:Esc<span style="font-size: 14px;"></span>
Commonly used plug-ins

<span style="font-size: 14px;"></span>

◇Installation Plug-in

<span style="font-size: 14px;"></span>

    CTRL SHIFT P to open the command box, search for Package Control install install

  1. (The Package Control plug-in itself is a In order to facilitate the management of plug-ins)<span style="font-size: 14px;"></span>
  2. Open the install package terminal

  3. (Directly call the command box or open Package Control and enter install package Click to enter)<span style="font-size: 14px;"></span>
  4. #Enter the desired plug-in name and click to install

  5. (Re-open sublime and now in Package Setting You can see the installed plug-ins)<span style="font-size: 14px;"></span>
◇Update plug-ins

<span style="font-size: 14px;"></span>

Ctrl Shift P brings up the command panel, enter upgrade packages, click Update

<span style="font-size: 14px;"></span>

◇Delete plug-in

<span style="font-size: 14px;"></span>

Ctrl Shift P calls Exit the command panel, enter remove, bring up the Remove Package terminal and click on the plug-in to be deleted

<span style="font-size: 14px;"></span>

Emmet

##Function: Coding shortcut keys, a must-have for the front end
Introduction: Emmet (relying on the pyv8 plug-in) is an upgraded version of zen coding. It is a necessary plug-in for the front end. If you are not familiar with it, you can check it out on its official website (http://docs .emmet.io/) to watch the specific demonstration video.
Usage: Tutorial-http://docs.emmet.io/cheat-sheet/
Sublime text3 usage tips (installation and common settings)

##◇

AutoFileName

Function: Quickly enter the file nameIntroduction:
Automatically complete the input of the file name , if you select from the picture, use:
Enter "/" to see other files relative to this project folder
Sublime text3 usage tips (installation and common settings)

IMESupport

Function: sublime Chinese input methodIntroduction:
Also Concerned about whether the Sublime Text Chinese input method cannot follow the cursor? Try the "IMESupport" plug-in! Currently it only supports Windows and cannot follow the cursor well in search and other interfaces. Use:
Ctrl Shift P → Enter pci → Enter IMESupport → Enter
Sublime text3 usage tips (installation and common settings)

##◇
JsFormat

Introduction:

This is a plug-in that formats JS. It can format compressed files. You can also use Package Control to install the JsFormat plug-in. After that, you can right-click on the JS file ->JsFormat<span style="font-size: 14px;"> or keyboard shortcut </span>Ctrl Alt F<span style="font-size: 14px;">Format JS</span>
Sublime text3 usage tips (installation and common settings)

SideBarEnhancements

Introduction:

SideBarEnhancements is a very practical right-click menu enhancement plug-in. Before installing the plug-in, right-click in the FOLDERS column on the left side of Sublime Text. There are only a few simple functions.

TrailingSpaces

##Introduction:
Sometimes, in There are a few extra spaces or tabs at the end of the code, but there is no display effect. TrailingSpaces is a plug-in that can highlight the extra spaces and tabs

##◇CssComb

Introduction:

CssComb is a plug-in for sorting and formatting CSS properties. You may find it after using Package Control to install the CssComb plug-in. It cannot run. It depends on Node.js. If your computer has already installed the NodeJS environment, you can skip this step. If your computer has not installed the Node.js environment, you should go to the Node.js official website [Download] And install the corresponding version of Node.js

Use: How to use: Menu Tools->Run CSScomb or press the shortcut key Ctrl Shift C in the CSS file (the shortcut key conflicts with the ColorPicker plug-in to change it Ctrl Shift alt C)
##◇ConvertToUTF8

Introduction: Sublime text itself does not support Chinese encoding, so it needs to be solved by installing a plug-in. The ConvertToUTF8 plug-in can achieve

Usage:

Instructions for use: Press the shortcut key Ctrl Shift C (shortcut key and ColorPicker plug-in Conflict change it to Ctrl Shift alt z) **Shortcut key modification: **preferences→browse packages, click to open and find the corresponding plug-in to modify the shortcut key
##◇Autoprefixer

Introduction: This is a CSS3 private prefix auto-completion plug-in. This plug-in uses the CanIUse database to accurately determine which attributes require which prefixes, just like the CssComb plug-in. This plug-in also requires the system to have the Node.js environment installed

Usage: Press the Tab key after entering the CSS3 properties (before the colon), as shown below
Sublime text3 usage tips (installation and common settings)

ColorPicker

Introduction: When editing CSS styles, ColorPicker allows sublime text to have a built-in color palette. After adjusting the color, click OK and a hexadecimal color code will be generated at the cursor.
Use:
<span style="font-size: 14px;">Ctrl/Shift Cmd Shift C</span>Call out

ColorHighlighter

Introduction: ColorHighlighter is a plug-in that displays the visual color of the selected color code. If you select "# fff" it will show you the white

Terminal

The terminal to open the file, the default terminal is CMD (supports linux). ctrl shift t opens the folder where the file is located, ctrl shift alt t opens the root directory folder of the project where the file is located, and you can reconfigure the shortcut keys yourself. You can also right-click open terminal here to open it.

File Header

##Introduction: File Header is A plug-in that automatically adds prefix fields to files
Configuration: preferences→browse packagesClick to open to find the corresponding plug-in, open template to modify the template

Sublime text3 usage tips (installation and common settings)

Code prompt plug-in summary

  • SublimeCodeIntel<span style="font-size: 14px;"></span>

Function: SublimeCodeIntel implements intelligent code prompts and automatic completion functions
Disadvantages: Few prompts, don’t want to use
Supported languages: JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP

  • bettercompletion<span style="font-size: 14px;"></span>

##Function: better completion implements smart code prompts And auto-complete functionAdvantages:
Can be customized, recommended to useSupported languages:
javascript, jQuery, Bootstrap, php, react, css, etc.Configuration:
Change the false of the corresponding file to true

    JavaScriptCompletions
  • <span style="font-size: 14px;"></span>

Function: JavaScriptCompletions implements code intelligent prompts and automatic completion functions Features:
Full prompts, high version sublime support is good Supported languages:
javascript

The above is the detailed content of Sublime text3 usage tips (installation and common settings). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete
Sublime Text vs. VS Code: Features and FunctionalitySublime Text vs. VS Code: Features and FunctionalityMay 11, 2025 am 12:20 AM

SublimeText is suitable for developers who pursue speed and simplicity, while VSCode is suitable for users who need strong scalability and integration capabilities. 1.SublimeText is known for its lightweight and fast response, with GotoAnything and multi-select powerful. 2. VSCode is known for its scalability and IDE functions, with built-in Git and debugging tools, and IntelliSense improves development efficiency.

Sublime Text: The Power of Plugins and PackagesSublime Text: The Power of Plugins and PackagesMay 10, 2025 am 12:17 AM

SublimeText's plug-ins and packages can be installed and managed through PackageControl to improve programming efficiency. 1. Install plug-ins such as BracketHighlighter to simplify code reading by highlighting bracket matching. 2. Use SublimeLinter to configure pylint to implement real-time code checking. 3. Use SideBarEnhancements to customize the sidebar function to optimize file management.

Is Sublime Text Free? Understanding the LicensingIs Sublime Text Free? Understanding the LicensingMay 09, 2025 am 12:10 AM

SublimeTextisfreeduringanunlimitedtrial,buta$99licenseisrecommendedforregularuse.1)Thetrialallowsfullfeatureaccesswithouttimelimits.2)Alicenseoffersperpetualuse,futureupdates,andremovespurchasereminders,enhancingproductivityandsupportingdevelopers.

Sublime Text: Enhancing Your Coding WorkflowSublime Text: Enhancing Your Coding WorkflowMay 08, 2025 am 12:19 AM

SublimeText can greatly improve work efficiency. 1) Multiple selection and multicursor functions allow editing of multiple positions at the same time, 2) Command panel provides fast function access, 3) Macros and fragments can automate common operations, 4) Optimized configuration and shortcut key use can improve performance and efficiency.

Sublime Text: Free to Try, Not Necessarily Free to OwnSublime Text: Free to Try, Not Necessarily Free to OwnMay 07, 2025 am 12:02 AM

SublimeText offers a free trial, but ultimately requires a paid purchase for a permanent authorization. 1) During the free trial period, users can experience its functions, but they will receive a purchase prompt. 2) After purchase, users can use it permanently, no subscription fee, and access more plug-ins and themes.

Sublime Text: Comparing Paid and Unpaid FeaturesSublime Text: Comparing Paid and Unpaid FeaturesMay 06, 2025 am 12:07 AM

ThemaindifferencesbetweenthepaidandunpaidversionsofSublimeTextaretheremovalofstatusbarremindersandoccasionalpop-uppromptsinthepaidversion.1)Unregisteredversion:fullyfunctionalwithallcorefeatureslikesyntaxhighlighting,codecompletion,andcommandpalette,

Sublime Text: The Cost of a Powerful EditorSublime Text: The Cost of a Powerful EditorMay 05, 2025 am 12:04 AM

SublimeText is worth buying. 1) Its simple interface and powerful functions, such as multi-line editing and GotoAnything, improve development efficiency. 2) Rich plug-in ecosystem, such as Anaconda, enhances the development experience. 3) Although the price is $70, its performance and fluency are great value for professional developers.

Sublime Text: Code Completion, Syntax Highlighting, and MoreSublime Text: Code Completion, Syntax Highlighting, and MoreMay 04, 2025 am 12:04 AM

SublimeText is loved by developers for its powerful code completion and syntax highlighting capabilities. 1) Code completion can automatically prompt function names, variable names, etc. to improve programming efficiency. 2) Syntax highlighting distinguishes code elements through different colors to improve readability and error detection speed.

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),