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

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

  •  
  •   proxytoworld · 2022-09-20 15:33:02 +08:00 · 479 次点击
    这是一个创建于 597 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我的 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 条回复    2022-09-20 15:49:23 +08:00
    maichael
        1
    maichael  
       2022-09-20 15:49:23 +08:00
    要看你 formatting 用的啥 provider
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3233 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:03 · PVG 21:03 · LAX 06:03 · JFK 09:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.