zoukankan      html  css  js  c++  java
  • VS Code中python代码自动格式化 代码自动检查

    VS Code菜单栏中依次打开 File—Preferences—Settings,搜索框中搜索“python.formatting.provider”,

    然后在下拉菜单中选择autopep8,yapf,black三种之中任何一个。推荐autopep8

    然后Ctrl+Alt+F会提示是否安装,选择后在vs code上方选择以哪种方式安装。

    VS Code菜单栏中依次打开 File—Preferences—Settings,

    1、搜索框中搜索“python.linting.pep8Enabled”,勾选

    2、搜索框中搜索“python.linting.pylintEnabled”,勾选(推荐)

    3、搜索框中搜索“python.linting.flake8Enabled”,勾选

  • 相关阅读:
    词根——rect
    6
    7
    5
    3
    4
    2
    1
    DBUtils
    Websocket
  • 原文地址:https://www.cnblogs.com/wintersoft/p/11634845.html
Copyright © 2011-2022 走看看