Skip to content
PluginStats

Python Indent installs statistics

By Kevin Rose · VS Code Marketplace · Programming Languages

Correct Python indentation

View on VS Code Marketplace Fresh · Dec 6, 2026

Python Indent has 19,271,527 recorded installs on VS Code Marketplace, an increase of 1.0% over the past 30 days, ranking #57 of 2,515 tracked listings.

Installs
19,271,527
Official API · Dec 6, 2026
7-day growth
+0.2%
+42.7K installs
30-day growth
+1.0%
+189.6K installs
90-day growth
—
Insufficient history
Rank
#57
Among tracked VS Code Marketplace listings

Rating: 4.14 / 5 from 65 ratings

About Python Indent

Python Indent

Correct Python indentation in Visual Studio Code. See the extension on the VSCode Marketplace and its source code on GitHub.

Build Status Visual Studio Marketplace Installs

How it works

When you press Enter, your Python code is parsed up to the cursor in order to find the correct indentation level of nearby lines. Because the "correct" indentation level can be an arbitrary number of spaces, the use of tabs (\t) is not supported.

For more detailed explanation of the behavior, see the section "Detailed Behavior" below.

Settings

There are three exposed settings.

  • pythonIndent.useTabOnHangingIndent
  • pythonIndent.useTabOnHangingIndent
    • boolean, the default is false
    • If true, after creating a hanging indent (see footnote 1 of PEP8 for a definition of a hanging indent), you can use the tab key to leave the indented section and go to the ending bracket.
  • pythonIndent.trimLinesWithOnlyWhitespace
    • boolean, the default is false
    • If true, trims lines that contain only whitespace after pressing Enter on them. This behavior is similar to VS Code's default.
  • pythonIndent.keepHangingBracketOnLine
    • boolean, the default is false
    • If true, when creating a hanging indent, do not put the closing bracket on its own line.

Release notes

See the change log.

Detailed behavior

There are three main cases when determining the correct indentation, described below.

Between bracket pairs

In cases when you have your cursor between an open bracket (one of [({) and its closing bracket pair (the corresponding one of })]), this extension will keep subsequent lines indented just to the right of where it was opened:

data = {'a': 0,
        | # <- pressing enter should put your cursor at the "|"
| # <- this is where default VS Code puts your cursor

Even heavily nested brackets are handled:

data = {'a': 0,
        'b': [[1, 2],
              | # <- match the more recently opened [ instead of the {
        | # <- default behavior of VS Code
data = {'a': 0,
        'b': [[1, 2],
              [3, 4]],
        | # <- since the lists are all closed, go back to the { position
              | # <- default behavior of VS Code
data = {'a': 0,
        'b': [[1, 2],
              [3, 4]],
        'c': 5}
| # <- go back to indentation level before any brackets were opened
        | # <- default behavior of VS Code

In the full example below, default VS Code required nine extra key presses (three tabs, two spaces, and four backspaces) to match the automatic indentation of this extension.

data = {'a': 0,
        'b': [[1, 2],
              [3, 4]],
        'c': 5}
done(data)
Hanging indents

When you have opened a bracket, but not yet inserted any content, pressing Enter will create a hanging indent, matching the base behavior of VS Code.

result = my_func(
    | # <- your cursor should end up here
) # <- the closing bracket should end up here

You can use the setting useTabOnHangingIndent to make it so that when you are done typing you can simply press Tab to be taken to the closing bracket.

If there is content to the right of your cursor when you press Enter, then this extension falls back on just indenting by your set tab size.

# The "|" is your cursor's location
result = my_func(|x, y, z)
# and when you press Enter...
result = my_func(
    |x, y, z)

If you never want to have the closing bracket end up on its own line (i.e. you always want to just indent by the set tab size), use the keepHangingBracketOnLine configuration setting. Warning: This may cause confusing indentation with function definitions as the argument list and the function code may end up at the same indentation level.

It's not often used, but a backslash to continue a line will also result in the next line being indented.

my_long_calculation = 1234 + \
    5678
Keywords

Some keywords in Python imply certain indentation behaviors. For example, if there is a return statement, then we know the next line can be un-indented (or dedented) since no statements can follow a return in the same code block. Other keywords that follow the same pattern are pass, break, continue, and raise.

Similarly, if there is an else: on the current line, then the current line needs to be dedented, and the next line needs to be indented relative to the new position of the else:. Other keywords that follow the same pattern are elif ...:, except ...:, and finally:. Some examples are shown below.

if True:
    pass
    else:|
# and when you press Enter...
if True:
    pass
else:
    |

But if you have manually changed the indentation, the extension should not change it for you:

if True:
    if True:
        pass
    else:|
# and when you press Enter, do NOT dedent!
if True:
    if True:
        pass
    else:
        |

# Or even more nested
if True:
    if True:
        if True:
            pass
    else:|
# and when you press Enter, still do NOT dedent
if True:
    if True:
        if True:
            pass
    else:
        |
Extending comments…

Description from the VS Code Marketplace listing.

  • dedent
  • indent
  • indentation
  • jupyter
  • keybindings
  • python
  • whitespace

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

Python Indent installs on VS Code Marketplace, last 90 days: 19,271,527 installs as of Dec 6, 2026.Python IndentInstalls on VS Code Marketplace · Last 90 days19,271,527installs18.9M19M19M19.1M19.1M19.2M19.2M19.3M19.3MSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Python Indent installs on VS Code Marketplace, last 90 days: 19,271,527 installs as of Dec 6, 2026.

7/30/90-day growth

Python Indent installs growth on VS Code Marketplace: +0.2% over 7 days, +1.0% over 30 days, 90-day growth unavailable.Python IndentInstalls growth on VS Code Marketplace19,271,527installs now7-day growth+42,740 installs+0.2%30-day growth+189,553 installs+1.0%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
Python Indent installs growth on VS Code Marketplace: +0.2% over 7 days, +1.0% over 30 days, 90-day growth unavailable.

Ranking history

Python Indent VS Code Marketplace ranking history: currently #57 (by installs).Python IndentVS Code Marketplace ranking · by installs · Last 90 days#57current rank#54#55#56#57#58#59Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
Python Indent VS Code Marketplace ranking history: currently #57 (by installs).

Ratings over time

Python Indent ratings on VS Code Marketplace, last 90 days: 65 ratings as of Dec 6, 2026.Python IndentRatings on VS Code Marketplace · Last 90 days65ratings5860626466687072Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
Python Indent ratings on VS Code Marketplace, last 90 days: 65 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,258 shown · page 3, #17 (overall #57)
All VS Code Marketplace: every listing in installs order

Listing placement

Programming Languages795 listings · 40 pages · page 2, #6 (overall #26)
Programming Languages: every listing in installs order

Listing placement

Keymaps29 listings · 2 pages · page 1, #1 (overall #1)
Keymaps: every listing in installs order

Listing placement

Formatters284 listings · 15 pages · page 1, #10 (overall #10)
Formatters: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (50)
Recent installs observations for Python Indent
Date (UTC)InstallsChange vs. previous
19,271,527+3.9K
19,267,591+8.9K
19,258,669+5.9K
19,252,778+7.2K
19,245,547+6.6K
19,238,960+7.1K
19,231,878+3.1K
19,228,787+6.7K
19,222,042+2.5K
19,219,522+10.1K
19,209,410+3.5K
19,205,949+9.6K
19,196,314+5.2K
19,191,118—

Similar VS Code Marketplace Programming Languages plugins

All 20 Python Indent alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=KevinRose.vsc-python-indent. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.