V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
noobsheldon
V2EX  ›  问与答

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

  •  
  •   noobsheldon · May 30, 2019 · 1260 views
    This topic created in 2530 days ago, the information mentioned may be changed or developed.
    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 replies    2019-05-30 10:35:47 +08:00
    jdhao
        1
    jdhao  
       May 30, 2019 via Android
    只知道 vim 可以设置你说的这种表现。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.