Example dummy code:
body {
background: white;
}
How can I select this whole code block with one shortcut? Best if caret should be |body
, or body {|
, or just on the desired row.
There is "Move Caret to Code Block End/Start with Selection" command, but it actually doesn't select body
and }
. So in next step you can't indent whole block by Tab . And it doesn't really fit for this task.
https://www.jetbrains.com/phpstorm/help/selecting-text-in-the-editor.html#d746177e148 You can use extend selection
This is very useful feature. In you case create macro:
And bind this macro to shortcut.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.