文本编辑器 - 保存折叠状态 [英] Text Editor - Saved collapsed state

查看:103
本文介绍了文本编辑器 - 保存折叠状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以选择保存代码折叠部分的状态?每次重新打开解决方案时,它们都会扩展。

解决方案

嗨BernieWade,


< span style ="font-size:11.0pt; font-family:'Calibri',sans-serif">欢迎来到MSDN论坛。


你的VS版本是什么?你是如何重现这个问题的?


I尝试使用C#/ VB控制台项目在VS 2017/2019中测试它,当我尝试关闭/打开或重新启动VS到
打开此解决方案时,可以保存折叠状态。


请试用以下内容来解决此问题:


  1. 转到工具导入和导出设置 - 重置所有设置,备份当前设置并选择"常规"将设置恢复为默认设置以尝试
  2. 修复VS,运行VS安装程序或转到控制面板 - 程序和功能,右键单击VS并更改修复



最好的问候,


萨拉


Is there an option to save the state of collapsed sections of code? They all expand every time I reopen the solution.

解决方案

Hi BernieWade,

Welcome to the MSDN forum.

What is your VS version and how did you reproduce this issue?

I tried to test it in VS 2017/2019 with C#/VB console projects and the collapsed state can be save when I try to close/open or restart VS to open this solution.

Please have a try with the following to troubleshoot this issue:

  1. go to Tools-Import and Export settings-reset all settings, back up the current setting and choose ‘General’ to restore the setting to the default one to have a try
  2. Repair VS, run the VS installer or go to Control Panel-Programs and Features, right click the VS and Change-Repair

Best regards,

Sara


这篇关于文本编辑器 - 保存折叠状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆