Sublime shortcut keys

Source: Internet
Author: User
Tags sublime text

Syntax shortcut keys: Descendants:>

abbreviation : Nav>ul>li

<nav>    <ul>        <li></li>    </ul></nav>
Brother: +

abbreviation : DIV+P+BQ

<div></div><p></p><blockquote></blockquote>
Supervisor: ^

abbreviation : DIV+DIV>P>SPAN+EM^BQ

<div></div><div>    <p><span></span><em></em></p>    <blockquote></blockquote></div>

abbreviation : DIV+DIV>P>SPAN+EM^^BQ

<div></div><div>    <p><span></span><em></em></p></ Div><blockquote></blockquote>
Group: ()

abbreviation :div> (header>ul>li*2>a) +footer>p

<div>    

abbreviation : (div>dl> (DT+DD)) +footer>p

<div>    <dl>        <dt></dt>        <dd></dd>        <dt></dt>        <dd></dd>        <dt></dt>        <dd></dd>    </dl></div> <footer>    <p></p></footer>
Multiplication: *

abbreviation : ul>li*5

<ul>    <li></li>    <li></li>    <li></li>    <li></li >    <li></li></ul>
Self-increment symbol: $

abbreviation : ul>li.item$*5

<ul>    <li class= "item1" ></li>    <li class= "item2" ></li>    <li class= " Item3 "></li>    <li class=" item4 "></li>    <li class=" ITEM5 "></li></ul >

abbreviation : H$[title=item$]{header $}*3

<H1 title= "item1" >header 1

abbreviation : ul>li.item$$$*5

<ul>    <li class= "item001" ></li>    <li class= "item002" ></li>    <li class= " item003 "></li>    <li class=" item004 "></li>    <li class=" item005 "></li></ Ul>

abbreviation : Ul>[email protected]*5

<ul>    <li class= "ITEM5" ></li>    <li class= "item4" ></li>    <li class= " Item3 "></li>    <li class=" item2 "></li>    <li class=" Item1 "></li></ul >

abbreviation : Ul>[email protected]*5

<ul>    <li class= "Item3" ></li>    <li class= "item4" ></li>    <li class= " ITEM5 "></li>    <li class=" Item6 "></li>    <li class=" Item7 "></li></ul >
ID and Class properties

abbreviation : #header

<div id= "Header" ></div>

abbreviation :. Title

<div class= "title" ></div>

abbreviation : form#search.wide

<form id= "Search" class= "wide" ></form>

abbreviation : P.CLASS1.CLASS2.CLASS3

<p class= "Class1 class2 class3" ></p>
Custom properties

abbreviation : p[title= "Hello World"]

<p title= "Hello World" ></p>

abbreviation : td[rowspan=2 colspan=3 title]

<TD rowspan= "2" colspan= "3" title= "" ></td>

abbreviation : [a= ' value1 ' b= "value2"]

<div a= "value1" b= "value2" ></div>
Text: {}

abbreviation : A{click Me}

<a href= "" >click me</a>

abbreviation : P>{click}+a{here}+{to continue}

<p>click <a href= "" >here</a> to Continue</p>
Implicit tags

abbreviation :. Class

<div class= "Class" ></div>

abbreviation : Em>.class

<em><span class= "Class" ></span></em>

abbreviation : Ul>.class

<ul>    <li class= "class" ></li></ul>

abbreviation : Table>.row>.col

<table>    <tr class= "Row" >        <td class= "col" ></td>    </tr></table>
Html

All unknown abbreviations will be converted to labels, such as,foo→<foo></foo>

abbreviation :!

<!doctype html>

abbreviation : A

<a href= "" ></a>

abbreviation : a:link

<a href= "/http" ></a>

abbreviation : a:mail

<a href= "mailto:" ></a>

abbreviation : abbr

<abbr title= "" ></abbr>

abbreviation : Acronym

<acronym title= "" ></acronym>

abbreviation : base

<base href= ""/>

abbreviation : Basefont

<basefont/>

abbreviation : BR

<br/>

abbreviation : Frame

<frame/>

abbreviation : HR

abbreviation : BDO

<bdo dir= "" ></bdo>

abbreviation : bdo:r

<bdo dir= "RTL" ></bdo>

abbreviation : bdo:l

<bdo dir= "ltr" ></bdo>

abbreviation : col

<col/>

abbreviation : Link

<link rel= "stylesheet" href= ""/>

abbreviation : link:css

<link rel= "stylesheet" href= "Style.css"/>

abbreviation : link:print

<link rel= "stylesheet" href= "Print.css" media= "print"/>

abbreviation : Link:favicon

<link rel= "shortcut icon" type= "Image/x-icon" href= "Favicon.ico"/>

abbreviation : Link:touch

<link rel= "Apple-touch-icon" href= "Favicon.png"/>

abbreviation : Link:rss

<link rel= "Alternate" type= "Application/rss+xml" title= "RSS" href= "Rss.xml"/>

abbreviation : Link:atom

<link rel= "Alternate" type= "Application/atom+xml" title= "Atom" href= "Atom.xml"/>

abbreviation : meta

<meta/>

abbreviation : Meta:utf

<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8"/>

abbreviation : Meta:win

<meta http-equiv= "Content-type" content= "text/html;charset=windows-1251"/>

abbreviation : META:VP

<meta name= "viewport" content= "Width=device-width, User-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 "/>

abbreviation : Meta:compat

<meta http-equiv= "x-ua-compatible" content= "ie=7"/>

abbreviation : Style

<style></style>

abbreviation : script

<script></script>

abbreviation : script:src

<script src= "" ></script>

abbreviation : img

abbreviation : iframe

<iframe src= "" frameborder= "0" ></iframe>

abbreviation : Embed

<embed src= "" type= ""/>

abbreviation : Object

<object data= "" Type= "" ></object>

abbreviation : param

<param name= "" value= ""/>

abbreviation : Map

<map name= "" ></map>

abbreviation : Area

<area shape= "" coords= "" href= ""  />

abbreviation : area:d

<area shape= "Default" href= ""  />

abbreviation : area:c

<area shape= "Circle" coords= "href=" "  />

abbreviation : area:r

<area shape= "rect" coords= "" href= ""  />

abbreviation : area:p

<area shape= "Poly" coords= "href=" "  />

abbreviation : Form

<form action= "" ></form>

abbreviation : form:get

<form action= "" method= "get" ></form>

abbreviation : form:post

<form action= "" method= "POST" ></form>

abbreviation : Label

<label for= "" ></label>

abbreviation : input

<input type= "Text"/>

abbreviation : INP

<input type= "text" name= "" id= ""/>

abbreviation : Input:hidden

Alias: Input[type=hidden name]

<input type= "hidden" name= ""/>

abbreviation : input:h

Alias: Input:hidden

<input type= "hidden" name= ""/>

abbreviation : Input:text, Input:t

Alias: INP

<input type= "text" name= "" id= ""/>

abbreviation : Input:search

Alias: Inp[type=search]

<input type= "Search" name= "id=" "/>

abbreviation : input:email

Alias: Inp[type=email]

<input type= "Email" name= "id=" "/>

abbreviation : Input:url

Alias: Inp[type=url]

<input type= "url" name= "id=" "/>

abbreviation : Input:password

Alias: Inp[type=password]

<input type= "Password" name= "id=" "/>

abbreviation : input:p

Alias: Input:password

<input type= "Password" name= "id=" "/>

abbreviation : input:datetime

Alias: Inp[type=datetime]

<input type= "datetime" Name= "id=" "/>

abbreviation : input:date

Alias: Inp[type=date]

<input type= "Date" name= "id=" "/>

abbreviation : input:datetime-local

Alias: inp[type=datetime-local]

<input type= "datetime-local" name= "id=" "/>

abbreviation : input:month

Alias: Inp[type=month]

<input type= "Month" name= "id=" "/>

abbreviation : Input:week

Alias: Inp[type=week]

<input type= "Week" name= "id=" "/>

abbreviation : input:time

Alias: Inp[type=time]

<input type= "Time" name= "id=" "/>

abbreviation : input:number

Alias: Inp[type=number]

<input type= "number" name= "id=" "/>

abbreviation : Input:color

Alias: Inp[type=color]

<input type= "Color" name= "id=" "/>

abbreviation : Input:checkbox

Alias: Inp[type=checkbox]

<input type= "checkbox" Name= "" id= ""/>

abbreviation : input:c

Alias: Input:checkbox

<input type= "checkbox" Name= "" id= ""/>

abbreviation : Input:radio

Alias: Inp[type=radio]

<input type= "Radio" name= "id=" "/>

abbreviation : input:r

Alias: Input:radio

<input type= "Radio" name= "id=" "/>

abbreviation : Input:range

Alias: Inp[type=range]

<input type= "range" name= "id=" "/>

abbreviation : input:file

Alias: Inp[type=file]

<input type= "File" name= "id=" "/>

abbreviation : input:f

Alias: Input:file

<input type= "File" name= "id=" "/>

abbreviation : input:submit

<input type= "Submit" value= ""/>

abbreviation : input:s

Alias: Input:submit

<input type= "Submit" value= ""/>

abbreviation : input:image

<input type= "image" src= ""  />

abbreviation : input:i

Alias: Input:image

<input type= "image" src= ""  />

abbreviation : Input:button

<input type= "button" value= ""/>

abbreviation : input:b

Alias: Input:button

<input type= "button" value= ""/>

abbreviation : isindex

<isindex/>

abbreviation : Input:reset

Alias: Input:button[type=reset]

<input type= "reset" value= ""/>

abbreviation : Select

<select name= "" id= "" ></select>

abbreviation : Option

<option value= "" ></option>

abbreviation : TextArea

<textarea name= "" id= "" cols= "" rows= "></textarea>

abbreviation : Menu:context

Alias:menu[type=context]>

<menu type= "Context" ></menu>

abbreviation : menu:c

Alias: Menu:context

<menu type= "Context" ></menu>

abbreviation : Menu:toolbar

Alias:menu[type=toolbar]>

<menu type= "Toolbar" ></menu>

abbreviation : menu:t

Alias: Menu:toolbar

<menu type= "Toolbar" ></menu>

abbreviation : Video

<video src= "" ></video>

abbreviation : Audio

<audio src= "" ></audio>

abbreviation : html:xml

abbreviation : keygen

<keygen/>

abbreviation : command

<command/>

abbreviation : BQ

Alias: blockquote

<blockquote></blockquote>

abbreviation : ACR

Alias: Acronym

<acronym title= "" ></acronym>

abbreviation : Fig

Alias: Figure

<figure></figure>

abbreviation : FIGC

Alias: Figcaption

<figcaption></figcaption>

abbreviation : IFR

Alias: iframe

<iframe src= "" frameborder= "0" ></iframe>

abbreviation : EMB

Alias: Embed

<embed src= "" type= ""/>

abbreviation : obj

Alias: Object

<object data= "" Type= "" ></object>

abbreviation : src

Alias: source

<source></source>

abbreviation : Cap

Alias: Caption

<caption></caption>

abbreviation : Colg

Alias: Colgroup

<colgroup></colgroup>

abbreviation : FST, Fset

Alias: fieldset

<fieldset></fieldset>

abbreviation : btn

Alias: button

<button></button>

abbreviation : btn:b

Alias: Button[type=button]

<button type= "button" ></button>

abbreviation : btn:r

Alias: Button[type=reset]

<button type= "Reset" ></button>

abbreviation : btn:s

Alias: Button[type=submit]

<button type= "Submit" ></button>




Select class Shortcut:  ctrl+d Select the text that the cursor occupies, and continue to select the next identical text. Alt+f3 selected text Press the shortcut key, you can select all the same text at once to edit simultaneously. Give a chestnut: quickly select and change all the same variable names, function names, and so on. Ctrl+l Select the entire row, continue to select the next row, the effect is the same as the shift+↓ effect. Ctrl+shift+l Select multiple rows First, and then press the shortcut key to insert the cursor at the end of each line to edit the rows at the same time. Ctrl+shift+m Select the contents in parentheses (continue to select the parent bracket). Give me a chestnut: Quickly select the code in the delete function, rewrite the function body code, or rewrite the contents of the parentheses inside. CTRL+M cursor moves to the end or start position within the parentheses. Ctrl+enter inserts a new row in the next line. For a chestnut: even if the cursor is not at the end of the line, you can quickly insert a line down. Ctrl+shift+enter inserts a new row in the previous line. For a chestnut: even if the cursor is not at the beginning of the line, it can be inserted quickly. ctrl+shift+[Select the code, press the shortcut key, and collapse the code. ctrl+shift+] Select the code, press the shortcut key, and expand the code. Ctrl+k+0 expands all collapsed code. ctrl+← move the cursor to the left and move the cursor quickly. ctrl+→ move the cursor to the right and move the cursor quickly. Shift+↑ select multiple rows upwards. Shift+↓ Select multiple rows. shift+← Select the text to the left. shift+→ Select the text to the right. ctrl+shift+← Select the text to the left of the unit. ctrl+shift+→ Select the text to the right of the unit. Ctrl+shift+↑ swaps the cursor line and the previous line of code (before inserting the row of the cursor into the previous row). Ctrl+shift+↓ swaps the lines of the cursor and the next line of code (inserts the row of the cursor after the next line). Ctrl+alt+↑ Add a multiline cursor up, and you can edit multiple lines at the same time. Ctrl+alt+↓ adds a multiline cursor down to edit multiple lines at the same time.   Edit Class shortcut key:  ctrl+j Merge the selected lines of code into one line. For a chestnut: merge the CSS properties of the multiline format into one line. Ctrl+shift+d the entire line where the cursor is copied, and inserts it into the next row. Tab right indent. Shift+tab indents to the left. Ctrl+k+k removes code from the cursor at the end of the line. Ctrl+shift+k Delete the entire row. ctrl+/Comment Line. ctrl+shift+/comment Multiple lines. Ctrl+k+u convert uppercase. Ctrl+k+l convert lowercase. CTRL + Z undo. Ctrl+y restore Undo.Ctrl+u soft undo, feeling and gtrl+z the same. CTRL+F2 set bookmarks ctrl+t around letters interchangeably. F6 Word detection spelling   search class shortcut:  ctrl+f Open the bottom search box to find keywords. Ctrl+shift+f in folders, unlike the normal editor is sublime allow to add multiple folders to find, slightly high-end, not researched. Ctrl+p Open the Search box. For a chestnut: 1. Enter the file name in the current project, quickly search for files, 2, enter @ and keywords, find the function name in the file, 3, enter: And number, jump to the line code in the file, 4, enter # and keyword, find the variable name. Ctrl+g Open the Search box and automatically take:, enter a number to jump to that line of code. For a chestnut: Quickly locate a file in which the page code is relatively long. Ctrl+r Open the Search box, automatically with @, enter keywords, find the function name in the file. For a chestnut: Quickly find a function on a page with more functions. CTRL +: Open the search box, automatically with #, enter keywords, find variable names in the file, attribute names, and so on. Ctrl+shift+p Open the Command box. Scene Chestnut: Open the Name box, enter the keyword, call sublime text or plug-in features, such as using the package installation plugin. ESC exits the cursor multi-line selection, exits the search box, command box, and so on.   Display class shortcut keys:  ctrl+tab The tabs of the current window in the order in which they were browsed by the file. Ctrl+pagedown Toggles the tab of the current window to the left. Ctrl+pageup Toggles the tab of the current window to the right. alt+shift+1 window split screen, restore the default 1 screen (non-keypad number) alt+shift+2 left and right split screen-2 columns alt+shift+3 left and right split screen-3 columns alt+shift+4 left and right split screen-4 columns alt+shift+5 4 screen alt+shift+ 8 Vertical split Screen-2 screen alt+shift+9 vertical split screen-3 screen ctrl+k+b turn the sidebar on/off. F11 Full-screen mode shift+f11 intrusion-free mode

Sublime shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.