search
HomeDevelopment ToolssublimeAbout using shortcut keys to organize Sublime Text2 (non-Mac)

About using shortcut keys to organize Sublime Text2 (non-Mac)

Sublime Text2 is a very awesome and sexy code editor and has always been my favorite editor.

Sublime Text’s main features include: spell check, bookmarks, complete Python API, Goto function, instant project switching, multi-selection, multi-window and more.

It has a beautiful user interface and extraordinary features, such as mini-map, multiple selections, Python plug-ins, code snippets, and more. Fully customizable key bindings, menus and toolbars.

废话不多说了,详情查看其官网:http://www.sublimetext.com/

Lucifr translated the Mac version of Sublime Text2 shortcut keys. Based on its translation, I have compiled a list of the main shortcut keys for the Windows version:

Open/Go:

Ctrl P Goto Anything

Ctrl R Goto method

Ctrl Shift P Command prompt

Ctrl G Go to a certain line

Ctrl K B Switch sidebar

Ctrl ` python console

Ctrl N New window

Ctrl Shift ↑ Swap with the upstream

Ctrl Shift ↓ Swap with the downstream row

Edit:

Ctrl L Select the entire line (hold down - continue to select the next line)

Ctrl D Select words (hold down - continue to select the next same string)

Ctrl Shift D Copy the cursor location Whole line, insert before the line

Ctrl Shift K Delete the whole line

Ctrl KK Delete from the cursor to the end of the line

Ctrl K Backspace Delete from the cursor to the line First

Ctrl J Merge (multiple) lines (when multiple lines to be merged have been selected)

Ctrl KU Change to uppercase

Ctrl KL Change to lowercase

Ctrl / Comment (if the content has been selected, the same effect as "Ctrl Shift /")

Ctrl Shift / Block comment (comment the selected content)

Ctrl Y Undo

Tab indentation is automatically completed

Shift Tab removes indentation

Ctrl Enter inserts a line after the line where the cursor is

Ctrl Shift Enter inserts a line before the line where the cursor is

Alt . Close the current label

Ctrl Shift A Select the parent label pair at the cursor position

Ctrl Shift [Collapse code

Ctrl Shift] Expand code

Split windows/tabs - this one is cool:

Alt Shift 1 Single Column

Alt Shift 2 Dual Column

Alt Shift 5 Net Grid (4 groups)

Ctrl [1,2,3,4] Move the focus to the corresponding group

Ctrl Shift [1,2,3,4] Move the current file to the corresponding group

Alt [1,2,3…] Select the corresponding tab page

Bookmark:

Ctrl F2 Set/Clear Bookmark

F2 Next bookmark

Shift F2 Previous bookmark

For more technical articles related to sublime text, please visit the sublime tutorial column!

The above is the detailed content of About using shortcut keys to organize Sublime Text2 (non-Mac). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:segmentfault. 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

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor