V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
noobsheldon
V2EX  ›  问与答

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

  •  
  •   noobsheldon · 2019-05-30 10:25:06 +08:00 · 970 次点击
    这是一个创建于 1819 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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,以此类推.

    有相关的设置,插件吗?

    1 条回复    2019-05-30 10:35:47 +08:00
    jdhao
        1
    jdhao  
       2019-05-30 10:35:47 +08:00 via Android
    只知道 vim 可以设置你说的这种表现。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1789 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.