VS Code Multi

编程入门 行业动态 更新时间:2024-10-28 11:26:51
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 }

在游标所在的那些函数中,我希望通过一个动作来选择所有的代码区域。 不幸的是选择括号只会选择其中一个游标。 莫名其妙地自动化吗?

如果可以与其他编辑人员一起完成,例如Br​​ackets或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.

enter image description here

更多推荐

本文发布于:2023-08-03 14:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390868.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Code   Multi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!