noobsheldon
V2EX  ›  问与答

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

  •  
  •   noobsheldon · May 30, 2019 · 1300 views
    This topic created in 2550 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   ·   2469 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 01:07 · PVG 09:07 · LAX 18:07 · JFK 21:07
    ♥ Do have faith in what you're doing.