The following are some commonly used shortcut keys for Webstorm that I have compiled. They are very practical and I would like to share them with you now:
(Learning video sharing: programming video)
1. ctrl shift n: Open files in the project. The purpose is to open files in any directory under the current project.
2. ctrl j: Output template
3. ctrl b: Jump to variable declaration
4. ctrl alt T: Wrap code (including zencoding's Wrap with Abbreviation)
5. ctrl [ ]: Match {}[]
6. ctrl F12: Can display the structure of the current file
7. ctrl x: Cut (delete) lines, unselected, directly cut the entire line, if part of the content is selected, then Cut the selected content
8. alt left/right: label switching
9. ctrl r: replace
10. ctrl shift up: line movement
11. shift alt up: block movement (if (){},while(){} statement block movement)
12. ctrl d: Line copy
13. ctrl shift ]/[: Select block code
14. ctrl / : Single line comment
15. ctrl shift / : Block comment
16. ctrl shift i : Display detailed information of the current CSS selector or JS function
17. ctrl '-/ ': You can collapse any code block in the project, Instead of selecting the fold, it automatically recognizes the fold.
18. ctrl '.': Collapse the code of the selected code.
ctrl / single line comment
ctrl shift / block comment
ctrl shift /-expand/collapse
ctrl alt L format code
ctrl shift up/down move sentences up and down
Alt back Car import package, automatically correct
Ctrl N Find class
Ctrl Shift N Find file
Ctrl Alt L Format code
Ctrl Alt O Optimize imported classes and packages
Alt Insert Generate code ( Such as get, set methods, constructors, etc.)
Ctrl E or Alt Shift C Recently changed code
Ctrl R Replace text
Ctrl F Find text
Ctrl Shift Space Autocomplete code
Ctrl Space code prompt
Ctrl Alt Space Class name or interface name prompt
Ctrl P Method parameter prompt
Ctrl Shift Alt N Find methods or variables in the class
Alt Shift C Compare the recently modified code
Shift F6 Refactor-Rename
Ctrl Shift key first
Ctrl X Delete line
Ctrl D Copy line
Ctrl / or Ctrl Shift / Comment (// or /*... */ )
Ctrl J Automatic code
Ctrl E Recently opened file
Ctrl H Display class structure diagram
Ctrl Q Display comment document
Alt F1 Find the location of the code
Alt 1 Quickly open or hide the project panel
Ctrl Alt left/right Return to the last browsed position
Alt left/right Switch code view
Alt Up/Down Quickly move between methods
Ctrl Shift Up/ Down moves the code up/down.
F2 or Shift F2 Highlight errors or warnings to quickly locate
After entering the code label, press Tab to generate the code.
Select the text, press Ctrl Shift F7, highlight all the text, press Esc to highlight it.
Ctrl W selects the code, continuous pressing will have other effects
Select the text, press Alt F3, search for the same text one by one, and highlight it.
Ctrl Up/Down The cursor jumps to the first or last line
Ctrl B Quickly opens the class or method at the cursor
Related recommendations: webstorm tutorial
The above is the detailed content of Share common shortcut keys for webstorm. 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

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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version
Chinese version, very easy to use

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),