Partage
  • Partager sur Facebook
  • Partager sur Twitter

Formater une ligne de code par la touche Entrée

    26 avril 2024 à 14:16:23

    Bonjour,

    je me suis lancé à apprendre le langage python.

    Je suis dans les paramètrages de vscode.

    J'ai installé les extensions

    • autoDocstring
    • Pylance
    • Pylint
    • Python
    • Python Debugger
    • Python indent

    Et le fichier settings.json

    {
      "workbench.colorTheme": "Winter is Coming (Dark Blue - No Italics)",
      "python.defaultInterpreterPath": "/usr/bin/python3",
      "python.analysis.typeCheckingMode":"standard",
      "python.analysis.autoSearchPaths":true,
      "python.languageServer":"Default",
      "python.analysis.completeFunctionParens": true,
      "pythonIndent.trimLinesWithOnlyWhitespace": true,
      "editor.defaultFormatter": "ms-python.black-formatter",
      "editor.formatOnSaveMode": "file",
      "editor.formatOnSave": true,
      "editor.formatOnPaste": true,
      "editor.formatOnType": true,
      "editor.tabCompletion": "on",
      "editor.tabSize": 2,
      "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
      "editor.cursorSmoothCaretAnimation": "on",
      "files.autoSave": "afterDelay",
      "files.autoSaveDelay": 120000,
      "autoDocstring.docstringFormat":"google",
      "pylint.severity": {
        "convention": "Information",
        "error": "Error",
        "fatal": "Error",
        "refactor": "Hint",
        "warning": "Warning",
        "info": "Information"
      },
    }

    En fait je cherche à formater la ligne de code que je viens de taper lorsque j'appuie sur entrée pour passer à la ligne

    • Partager sur Facebook
    • Partager sur Twitter

    Formater une ligne de code par la touche Entrée

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    • Editeur
    • Markdown