Eclipse PyDev 中的括号折叠
有没有办法自定义 Eclipse PyDev 行折叠?当函数调用获得很多参数时,我更喜欢像这样折叠我的代码:
def some_function():
function_call(
first_argument=first_value,
second_argument=second_value,
third_argument=third_value,
...
)
但是对于 PyDev 这真的很难。在 function_call(
之后点击 RETURN 会将我带到下一行,其标识与 (
在同一列上完成。它看起来像这样:
def some_function():
function_call(
# My caret lands here.
不是一个大问题,但找不到设置或网络上的任何内容。
Is there any way to customize Eclipse PyDev line folding? When a function call gets a lot of arguments, I prefer to fold my code like this:
def some_function():
function_call(
first_argument=first_value,
second_argument=second_value,
third_argument=third_value,
...
)
However with PyDev this is really hard. Hitting RETURN after function_call(
will bring me to next line with the identation finishing on same column as (
. It looks like this:
def some_function():
function_call(
# My caret lands here.
Not a big issue, but couldn't find anything in the settings nor on the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在窗口下>偏好> pydev >编辑>键入时,取消选中“‘(’之后缩进到其级别(如果未选中,则按制表符缩进)”。
Under window > preferences > pydev > editor > typing, uncheck the "after '(' indents to its level (indents by tabs if unchecked)".