Home > Web Front-end > H5 Tutorial > body text

Using H5 shortcut keys in webstorm

php中世界最好的语言
Release: 2018-03-13 09:46:16
Original
6064 people have browsed it

This time I will bring you the shortcut keys for using H5 in webstorm. What are the precautions for using H5 shortcut keys in webstorm? The following is a practical case, let’s take a look.

Quickly move the selected code, move up and down

往上移动: Ctrl + shift + ⬆️ (方向键上)
往下移动: Ctrl + shift + ⬇️ (方向键下)
Copy after login

Quickly merge and expand the code (merge or expand a certain label)

Put the mouse cursor on the place that needs to be merged Or expand the position

合并: Ctrl + ➖
展开: Ctrl + ➕
Copy after login

Quickly merge and expand codes (merge or expand all selected tags)

Use the mouse to select multiple tags that need to be merged

合并: Ctrl + shift + ➖
展开: Ctrl + shift + ➕
Copy after login

Quickly start a new line

当鼠标的光标在某一行的中间时,shift + enter 快速新起一行shift + enter
Copy after login

Add a label to the selected text

Ctrl + alt + t     mac电脑:option + command + t
Copy after login

Enlarge/reduce the proportion of the web page

Ctrl + alt + 滚轮(上下)
Copy after login

intput Shortcut way to write labels

input:password + tab >>> <input type="password" name="" id="">input:radio + tab >>> <input type="radio" name="" id="">
Copy after login

Set the class name for the label

div.header + tab >>> <div class="header"></div>
Copy after login

Generate multiple labels of the same type with different class names

div.box$*2  >>> <div class="box1"></div>
                  <div class="box2"></div>
Copy after login

Label with content

span.box${我是内容}*3 >>> 生成如下代码: <span class="box1">我是内容</span><span class="box2">我是内容</span><span class="box3">我是内容</span>
Copy after login

Firework shortcut keys

Ctrl + alt + 滚轮 : 放大/缩小图片
Ctrl + 滚轮: 也可以放大/小图片
Copy after login

Multi-line code comments

Ctrl + shift + "/"  把选中的多行代码注释掉,而不会多很多多余的小东西出来
Copy after login

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

How to load HTMLString in iOS webView

html5 little knowledge that is easily overlooked

How to add a code block with prompt function

A few small exercises about regular expressions

The above is the detailed content of Using H5 shortcut keys in webstorm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template