Pydev 右括号自动完成
PyDev/Eclipse 中是否有跳出右括号的快捷方式?必须按箭头键才能将光标移到括号之外是一种痛苦。
Is there a shortcut to jump out of closing parenthesis in PyDev/Eclipse? Having to hit arrow key to move the cursor outside of the parenthesis is kind of a pain.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 Fabio 所说,你可以通过按 TAB 或 Enter 跳出,但此选项 被关闭默认,按下 TAB/Enter 键后您只需得到几个空格/换行符。
要打开这个宝贵的选项,请访问:
窗口>首选项> PyDev >编辑>打字
并选中“启用自动括号或文字结束链接”。
As Fabio said, you can jump out by pressing TAB or Enter, but this option is turned off by default and you simply get a few spaces/a new line upon pressing TAB/Enter.
To turn this precious option on, go to:
Window > Preferences > PyDev > Editor > Typing
and check "Enable link on automatic parenthesis or literals closing".
我只需输入右括号,编辑器就会让我退出,而无需添加额外的标点符号。有些人会认为这使得括号的自动放置有些多余,但我发现它非常有用
I just type the closing parenthesis and the editor gets me out without adding extra punctuation. Some would argue that this makes the auto placement of parenthesis somewhat redundant, but I find it quite useful
在最新的 PyDev (2.0) 中,它现在会在自动关闭括号时创建一个链接,因此,在自动关闭后,您可以按 ')'、enter 或 tab 转到另一侧(并记住如果你想直接转到下一行,请使用shift+enter。
In the latest PyDev (2.0), it'll now create a link when it auto-closes the parenthesis, so, after it auto-closes you can press either ')', enter or tab to go to the other side (and remember that if you want to go to the next line directly, use shift+enter.