Visual Studio Code 有没有随着光标移动自动展开,折叠代码的设置

2019-05-30 10:25:06 +08:00
 noobsheldon
import os


def test():
	print("111111111111111")
    print("111111111111111")
    print("111111111111111")
    print("111111111111111")
    
    
class Observer():
	def __init__(self):
    	self.name = "nobody"
        
def another_function():
	print("111111111111111")
    print("111111111111111")
    print("111111111111111")

详情: 从一个模块从上往下移动时, 如果光标在testBlock 内就自动展开 test 层级,折叠Observeranother;进入Observer时,就自动展开Observer层级 Block,折叠test, another_function,以此类推.

有相关的设置,插件吗?

972 次点击
所在节点    问与答
1 条回复
jdhao
2019-05-30 10:35:47 +08:00
只知道 vim 可以设置你说的这种表现。。

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

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

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

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

© 2021 V2EX