Skip to main content

How To Change Tab Size and Indent in PyCharm

Submitted by admin on Wed, 12/08/2021 - 13:01
Tab Size and Indent in PyCharm
The default tab size and indent in PyCharm is 4.
But you can change this value from settings.

Open PyCharm Settings

Open PyCharm settings from:
File -> Settings..

Navigate to:

Editor -> Code Style -> Python

Here you can change the tab size and indent for Python language. Similarly, you can change for HTML, JSON, XML, YAML and other files.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.