Basic operations that sublime must master (collection)
The following tutorial column of sublime will introduce you to the basic operations of sublime that you must master. I hope it will be helpful to friends in need!
Home key: Move the cursor to the beginning of this sentence
End key: Move the cursor to the end of this sentence
alt shift numeric keys (1, 2..): split screen operation, if 2, it will be divided into two screens
Click near the line number Down arrow and up arrow: Code folding and expansion
crtl D: Select a word
crtl L: Select one line
crtl A: Select all
crtl Click the cursor on multiple locations: Select multiple locations and edit at the same time
crtl ] Selected code: Indent the entire code to the right
crtl [ Selected code: Indent the entire code to the left
crtl N: Create a new page
! tab (Extended): Enter HTML basic page template
Other tag symbols tab (Extended): Extended tag
For example: p tab:
Expression "p>img*5 a" tab: Nesting of tags.
> means to separate the next level, * means to generate multiple at the same time, means the same level of tags
expression"(p>p) (p>img)" tab: Grouping of tags
lorem tab: Quickly generate a piece of text
lorem4 tab : Quickly generate 4-word text
ctrl? Selected part: Add comment or undo comment
Ctrl Wheel: Zoom in and out interface
Right click open in Browser: Open the page in the browser
For more sublime related technical articles, please visitsublime texttutorial Column!
The above is the detailed content of Basic operations that sublime must master (collection). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











To run Python code in Sublime Text, you need to install the Python plug-in first, then create a .py file and write the code, and finally press Ctrl B to run the code, and the output will be displayed in the console.

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

There are two ways to generate HTML code in Sublime Text: Using the Emmet plugin, you can generate HTML elements by entering an abbreviation and pressing the Tab key, or use a predefined HTML file template that provides basic HTML structure and other features such as code snippets, autocomplete functionality, and Emmet Snippets.

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 provides shortcuts to improve development efficiency, including commonly used (save, copy, cut, etc.), editing (indentation, formatting, etc.), navigation (project panel, file browsing, etc.), and finding and replacing shortcuts. Proficiency in using these shortcut keys can significantly improve Sublime's efficiency.

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.

How to run Python scripts in Sublime Text: Install Python interpreter configuration Interpreter path in Sublime Text Press Ctrl B (Windows/Linux) or Cmd B (macOS) to run the script If an interactive console is required, press Ctrl \ (Windows/Linux) or Cmd \ (macOS)

To set the shortcut keys for Sublime Text, follow these steps: Open the shortcut key settings file Key Bindings - User. Add shortcut key settings using the format { "keys": ["key combination"], "command": "command" }. Save changes. Reload the shortcut key settings for the changes to take effect.
