In PhpStorm there is shortcut to extend selecting ctrl + w
. It there shortcut to select all current line? I looking for something that works like ctrl + l
in Sublime?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Such action is available ... but assigned shortcut (if any) depends on actual keymap used.
In any case:
Settings/Preferences | Keymap
- Locate
Editor Actions | Select line at Caret
entry (HINT: use local search box) - Assign any shortcut you wish (or use provided one, if that keymap has one)
P.S. If you want to select current line to copy/cut it as a next step ... then you can just use Copy or Cut straight away -- it will copy/cut current line if no selection is made (default behaviour -- can be turned off via hidden setting).
回答2:
Yes - go to Settings > Keymap and search for "Select line at caret". You can map it to any keyboard shortcut you like by right-clicking it and select "Add Keyboard Shortcut".
If you try to assign a keyboard shortcut which is already assigned to something else, PhpStorm will let you decide whether to continue or change your keybind.