VS Code Multi-Cursor选择为括号功能(VS Code Multi-Cursor Select to Brackets functionality)
是否可以通过单个动作选择多个光标选择到括号?
例如
void func1(....){<Cursor1> // Region 1 } void func2(....){<Cursor2> // Region 2 } void func3(....){<Cursor3> // Region 3 } void func4(....){<Cursor4> // Region 4 }在游标所在的那些函数中,我希望通过一个动作来选择所有的代码区域。 不幸的是选择括号只会选择其中一个游标。 莫名其妙地自动化吗?
如果可以与其他编辑人员一起完成,例如Brackets或Sublime Text 3,我很好。
Is it possible to select multi cursor select to brackets altogether via single action?
e.g.
void func1(....){<Cursor1> // Region 1 } void func2(....){<Cursor2> // Region 2 } void func3(....){<Cursor3> // Region 3 } void func4(....){<Cursor4> // Region 4 }in those functions where the cursors are I would like to select all the code regions with a single action. Unfortunately select to brackets only selects one of the cursors. Is it possible to automate this somehow?
I am fine if it is possible to do it with other editors e.g.Brackets or Sublime Text 3 as well.
最满意答案
看看扩展expand_region 。 它做你想要的很好。
Have a look at the extension expand_region. It does what you want nicely.
更多推荐
发布评论