简体   繁体   English

是否存在影响 Python VSCode 的 #region #endregion 崩溃的设置?

[英]Is there a setting that effects #region #endregion collapsing for Python VSCode?

Last night the #region and #endregion were working fine in VSCode for.py (python) interactive notebook files.昨晚 #region 和 #endregion 在 VSCode for.py (python) 交互式笔记本文件中运行良好。 Today, the gutter (carrot left of #region) has disappeared ctrl+k,ctrl+0 no longer collapses between #region and #endregion.今天,排水沟(#region 左边的胡萝卜)消失了 ctrl+k,ctrl+0 不再在#region 和#endregion 之间折叠。 There's no way to collapse manually either.也没有办法手动折叠。 The version of VSCode does not appear to have updated (1.63.2) from 4 wks ago.从 4 周前开始,VSCode 的版本似乎没有更新(1.63.2)。 I tried reinstalling VSCode with multiple computer restarts, but the settings are all automatic and reloaded on startup again.我尝试通过多次重启计算机来重新安装 VSCode,但这些设置都是自动的,并且在再次启动时重新加载。 Any suggestions would be appreciated.任何建议,将不胜感激。 Very odd if it's a bug since there doesn't appear to have been an update.如果这是一个错误,那就太奇怪了,因为似乎没有更新。
Picture below w/ no carrot for collapsing left of #region下图没有胡萝卜,用于在#region 的左侧折叠

图片 w 没有用于塌陷排水沟的胡萝卜

Hi You can enable code folding in settings in vs code.您好您可以在 vs code 的设置中启用代码折叠。

just go to settings, type code folding只需 go 到设置,键入代码折叠

Then under Editor: Folding, tick the box然后在编辑器下:折叠,勾选框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM