Eclipse/Pydev:有没有办法暂时快速禁用自动右括号功能?
虽然我大多数时候喜欢并喜欢在 Eclipse/Pydev 中输入左括号时自动插入右括号的功能,但有时我想禁用它,例如添加缺少的左括号。我想知道是否有任何方法可以快速暂时禁用该功能,也许是键盘快捷键?谢谢。
While I like and enjoy the feature of auto-inserting closing bracket when I input opening bracket in Eclipse/Pydev most of the time, there are occasions that I want to disable it, such as adding a missing opening bracket. I was wondering if there's any way to quickly and temporarily disable the feature on-the-fly, maybe a keyboard shortcut? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前还没有这样的功能,但您可以接近:您可以添加一个键绑定来打开定义该首选项的页面(首选项 > pydev > 编辑器 > 键入 >“自动括号插入”)。
要添加快捷方式:ctrl+shift+l(两次),搜索“typing”并添加映射。
如果这对您来说还不够,请在 PyDev 功能跟踪器中添加功能请求(或者更好,因为它是开源的,您可以提供补丁来添加该功能 - 即使在 PyDev 脚本中也应该很容易更改首选项请参阅:http://pydev.org/manual_articles_scripting.html)
There's no such feature right now, but you can get close: you can add a keybinding to open the page where that preference is defined (preferences > pydev > editor > typing > "automatic parentheses insertion").
To add the shortcut: ctrl+shift+l (twice), search for 'typing' and add the mapping.
If that's not enough for you, please add a feature request in the PyDev features tracker (or better yet, as it's open-source, you can provide a patch to add that feature -- should be easy changing the preference even in the PyDev scripting. See: http://pydev.org/manual_articles_scripting.html )