Skip to content

Latest commit

 

History

History
101 lines (79 loc) · 2.52 KB

2-vscode.md

File metadata and controls

101 lines (79 loc) · 2.52 KB

Kod Editör Kurulumu

Geri

Visual Studio Code

Microsoft tarafından geliştirilen açık kaynaklı bir idedir.


Kullanılacak Eklentiler;

Eklenti Adı Kullanım Amacı
Python Linter, Debug, Code Formatting
Bracket Pair Colorizer 2 Parantez ve süslü parantezleri ayırt etme.
Indent-rainbow Tabları renklendirir
Visual Studio IntelliCode Yapay zekalı asistan
Pylance Python yardimci kod tamamlayici
One Dark Pro Tema (opsiyonel)
Vscode-icons Guzel iconlar (opsiyonel)

Diğer Eklentiler

https://marketplace.visualstudio.com/VSCode


Python icin VsCode Ayarlari

Settings > Open Settings.json

    "python.languageServer": "Pylance",
    "python.formatting.provider": "black",
    "python.formatting.blackArgs": [
        "--skip-string-normalization",
        "--line-length=120"
    ],
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": [
        "--max-line-length=120"
    ],

Pipenv Permission Hatasi Cozumu

"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]

Auto Format On Save

"editor.formatOnSave": true

Settings.json

{
    "workbench.startupEditor": "newUntitledFile",
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorTheme": "One Dark Pro",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "python.languageServer": "Pylance",
    "python.formatting.provider": "black",
    "python.formatting.blackArgs": [
        "--skip-string-normalization",
        "--line-length=120"
    ],
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": [
        "--max-line-length=120"
    ],
    "terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"],
    "editor.formatOnSave": true,
}

Tum ayarlar tamamlandi. Python projesi acarak 'black' ve 'flake8' paketlerini kuruyoruz. VSCode > Terminal - black8 kurulumu.

pipenv install --dev --pre black
pipenv install --dev flake8

Python -> Temeller