vscode代码收起
时间: 2023-10-12 18:56:31 浏览: 175
在vsCode中,你可以使用代码折叠功能来收起代码块,以提高代码的可读性和浏览速度。要启用代码折叠功能,你可以按照以下步骤进行设置:
1. 打开设置面板:点击vsCode左上角的“文件”菜单,选择“首选项”下的“设置”选项。
2. 在设置面板中,搜索“Folding”关键字。
3. 找到“Editor: Folding Strategy”选项,点击编辑小图标(铅笔图标)进行编辑。
4. 在弹出的选项中,选择“indentation”(缩进)选项,这将改变代码块的折叠范围。
5. 现在,你就可以使用代码折叠功能了。在代码编辑器中,你可以点击代码行号旁边的折叠图标来折叠或展开代码块。
请注意,有些情况下可能需要重启vsCode才能使设置生效。
希望这个解决方法对你有帮助!\[1\]
#### 引用[.reference_title]
- *1* [vsCode代码块无法折叠收起问题&代码块折叠/展开快捷键](https://blog.csdn.net/Maybe_ss/article/details/122577167)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [VS Code插件使用推荐/学习记录](https://blog.csdn.net/bigearrabbit/article/details/127682275)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐


















