Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PyCodeQNew to Visual Studio Code? Get it now.
PyCodeQ

PyCodeQ

MicrQ

|
47 installs
| (1) | Free
The simplest, fastest pycodestyle linter available!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PyCodeQ

PyCodeQ Demo

The simplest, fastest pycodestyle linter available!

PyCodeQ is a fast, simple, and lightweight linter extension for Python in Visual Studio Code. It uses pycodestyle to check your Python files for style issues and instantly highlights problems in your code.

Features

  • Runs pycodestyle automatically when you save or open a Python file
  • Highlights style issues directly in the editor using VS Code diagnostics
  • Command: PyCodeQ: Run Linter Check (available in the Command Palette)
  • Configurable path to the pycodestyle executable
  • Ignore specific error codes via settings
  • No configuration required—just install and start linting!

Custom Executable Path Demo

Custom Executable Path

Ignore Error Codes Demo

Ignore Error Codes

Requirements

  • Python must be installed on your system
  • You must have pycodestyle installed and available in your PATH (or specify a custom path in settings)

Install with:

pip install pycodestyle
  • (Optional): If you want to use auto-fix on open/save, install:
pip install autopep8

Usage

  1. Open any Python file in VS Code.
  2. Save the file or run the command PyCodeQ: Run Linter Check from the Command Palette.
  3. Style issues will be highlighted in the editor and listed in the Problems panel.
  4. (Optional) Configure the path to pycodestyle or ignore error codes in the extension settings.

Auto-fix (optional)

PyCodeQ can optionally run an external fixer to automatically correct style violations when a file is opened or closed. This behavior is off by default.

  • To enable auto-fix on save, set pycodeq.autoFixOnSave to true in your settings.
  • By default PyCodeQ uses autopep8 with the --in-place option. You can change the path to the autopep8 executable using pycodeq.autopep8ExecutablePath.
  • If the fixer isn't available, PyCodeQ will show a notification and still run the linter so diagnostics are displayed.

Example settings:

{
  "pycodeq.autoFixOnSave": true,
  "pycodeq.autopep8ExecutablePath": "autopep8"
}

Auto-fix demo

Auto Fix demo

Known Issues

  • Only supports linting with pycodestyle found in your system PATH or specified path

Release Notes

1.2.0

  • Optional auto-fix feature on file save; configurable and disabled by default
  • Add settings to configure auto-fix command and arguments

1.1.0

  • Added support for configuring a custom path to the pycodestyle executable
  • Added support for ignoring specific error codes via extension settings

1.0.0

  • Initial public release
  • Automatic linting on save and open
  • Manual linting command
  • Diagnostic highlights for style issues

License

MIT


For questions, feedback, or issues, please visit the GitHub repository.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft