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

vscode 在 format Python 代码的时候,把 list 的一些短项换行了,有什么好办法可以不换行吗

  •  
  •   proxytoworld · Sep 20, 2022 · 862 views
    This topic created in 1327 days ago, the information mentioned may be changed or developed.

    我的 vscode 会这样 format ,一些短项希望在同一行,不那么浪费,应该要怎么设置啊

            "Sec-Fetch-Dest":
            "document",
            "Sec-Fetch-Mode":
            "navigate",
            "Sec-Fetch-Site":
            "same-origin",
            "Pragma":
            "no-cache",
            "Cache-Control":
            "no-cache",
            "Te":
            "trailers",
            "Connection":
            "close"
        }
    
    
    1 replies    2022-09-20 15:49:23 +08:00
    maichael
        1
    maichael  
       Sep 20, 2022
    要看你 formatting 用的啥 provider
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5386 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
    ♥ Do have faith in what you're doing.