gpt4 book ai didi

visual-studio-code - 如何防止 VS Code 折叠尾随空行?

转载 作者:行者123 更新时间:2023-12-03 14:49:05 25 4
gpt4 key购买 nike

我有以以下方式使用代码编辑器进行笔记的习惯:

a topic
. a note
? a question regarding the note
- a to do item
. some more details
. another note
. more details

another topic
...

我喜欢 VS Code 的一点是它允许根据缩进(例如 Python)折叠(折叠)txt 文件中的块:
  a topic
+ . a note
. another note
. more details

another topic
...

不过,我不喜欢的是,它还在折叠块中包含空行: . more details 之后的行没有缩进,但是当我折叠那个块时,我得到
  a topic
+ . a note
+ . another note
another topic
...

虽然我希望它是
  a topic
+ . a note
+ . another note

another topic
...

你能建议我应该改变哪些选项来获得这种关于折叠的差异吗?

最佳答案

我不知道有什么方法可以防止最后一行在 VS Code 中被折叠,除非您使用 3rd 方扩展名。

如果您 search extensions for 'folding'你应该看到几个。 Explicit Folding似乎有选项可以控制这一点。但还有很多。看一看,看看是否符合您的需求。如果没有,那么获得它的唯一方法就是开发一个扩展来按照你想要的方式处理这个问题。

关于visual-studio-code - 如何防止 VS Code 折叠尾随空行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54332719/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com