用于跳到行尾以输入分号的替代组合键
由于自动代码完成,我经常发现自己处于括号之间,必须到达行尾才能添加不可避免的分号。
然后我必须举起右手,向右移动,点击End,然后再次回到键盘的主要部分来输入分号。
我认为这会干扰我的打字流程,尤其是在笔记本上书写时,因为那时我的手部动作非常低效。
主键盘区域内是否已有用于到达行尾或添加分号的组合键?或者是否可以在这些方面配置 PhpStorm?
(我正在使用 PhpStorm,但我在这个问题中添加了 IntelliJ IDEA 标签,因为我猜它们在这些基本功能方面是相似的。)
Due to automatic code completion, I regularly find myself in between parentheses, having to get to the end of a line to add the inevitable semicolon.
Then I have to get my right hand up, move it to the right, hit End, and come back to the main part of the keyboard again to enter the semicolon.
I perceive this as disturbing to my flow of typing, especially when writing on a notebook, as then those moves of my hand are very inefficient.
Is there already a key combination for reaching the end of a line, or adding a semicolon, within the main keyboard area? Or is it possible to configure PhpStorm in those regards?
(I'm using PhpStorm, but I added the IntelliJ IDEA tag to this question as I guess they would be similar regarding those basic features.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
更高效:调用
Edit
|完成当前语句
(Ctrl+Shift+Enter) 自动在行尾插入分号并开始新行。More efficiently: invoke
Edit
|Complete Current Statement
(Ctrl+Shift+Enter) to automatically insert semicolon at end of line and start new line.您可以在
设置
| 中为将插入符移动到行尾操作分配任何键盘快捷键。键盘映射
。You can assign any keyboard shortcut to the Move Caret to Line End action in
Settings
|Keymap
.您需要尝试touchcursor。我就是喜欢它。
You need to try touchcursor. I just love it.