请问 vscode 折叠一大坨代码的时候能不能只折叠最外层的嵌套,而不是折叠每一个嵌套?

2020-11-19 23:54:27 +08:00
 MajestySolor
3677 次点击
所在节点    Visual Studio Code
7 条回复
libasten
2020-11-20 00:39:24 +08:00
默认不就是这种折叠方式吗?
MajestySolor
2020-11-20 00:43:56 +08:00
@libasten #1 默认快捷键 ctrl k ctrl 0 是折叠所有嵌套啊 ???
binux
2020-11-20 00:45:14 +08:00
Fold level *
MajestySolor
2020-11-20 00:50:50 +08:00
@binux #3 太感谢了,终于搞明白了这个问题
Tumblr
2020-11-20 00:53:45 +08:00
⌥⌘[ / ⌥⌘]
Fold/unfold region

⌘K ⌘[ / ⌘K ⌘]
Fold/unfold all subregions

⌘K ⌘0 / ⌘K ⌘J
Fold/unfold all regions
libasten
2020-11-20 07:11:34 +08:00
用 ctrl+shift+[ 这个快捷键
HUNYXV
2021-04-15 11:34:58 +08:00
mac
- command + K,command + [level] (1 ~ 5) :表示折叠层数
- 比如 command + K,command + 1 表示折叠第一层
- command + K,command + 1 表示折叠第二层
- command + K,command + 0 表示折叠所有层
- command + K,command + J 展开折叠

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/727334

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX