Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Auto Indent PythonNew to Visual Studio Code? Get it now.
Auto Indent Python

Auto Indent Python

Lauglitch

|
714 installs
| (0) | Free
Auto indents selected Python code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Indent Paste - VSCode Extension

Code without Auto Indent Paste

Auto Indent Paste is a Visual Studio Code extension that automatically adjusts indentation when pasting Python code. This helps maintain consistent formatting and improves code readability.

Features

  • Automatically adjusts indentation on selected Python code.
    • Code without empty lines between will be indented once.
    • Code with one empty line will maintain the indentation level.
    • Code with two empty lines will reset the indentation.
  • Works seamlessly with different indentation levels.
  • Improves code formatting and reduces manual indentation fixes.

NOTE: This behavior is subject to the code's intent and should be reviewed by the user.

How To Use

Select the Python code you want to indent with the cursor and press 'Ctrl + Alt + I'

Screenshots

Code without Auto Indent Paste Code with Indent Paste

Requirements

This extension does not have any external dependencies. Just install and start using it!

Extension Settings

This extension contributes the following settings:

  • autoIndentPaste.enable: Enable/disable this extension.
  • autoIndentPaste.indentationSize: Set the number of spaces for indentation.

Known Issues

  • Might not work correctly with mixed indentation styles (tabs and spaces together).
  • If you encounter any issues, please report them on GitHub Issues.

Release Notes

1.0.0

  • Initial release of Auto Indent Paste.

Author

Created by Lauglitch. Visit my website: lauglitch.com

Following Extension Guidelines

Ensure that you've read through the extension guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

For More Information

  • Visual Studio Code's Extension API
  • Markdown Syntax Reference

Enjoy coding with Auto Indent Paste! 🚀

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