There is an open request for this, please vote:
- PY-20243 " Default Settings" dialog in Idea does not have "Python Integrated Tools" settings
JetBrains
jetbrains.com › help › idea › code-style-python.html
Code Style. Python | IntelliJ IDEA Documentation
August 10, 2026 - You can change the maximum line length for Python sources in Code Style | Python | Wrapping and Braces | Right margin of the editor settings. Use this tab to specify where you want spaces in your code. To have IntelliJ IDEA automatically insert a space at a location, select the checkbox next to this location in the list.
JetBrains
jetbrains.com › help › idea › reformat-and-rearrange-code.html
Reformat code | IntelliJ IDEA Documentation
4 weeks ago - IntelliJ IDEA lets you reformat your code according to the requirements you have specified in your current code style scheme or the .editorconfig file.
JetBrains
jetbrains.com › help › idea › settings-tools-python-integrated-tools.html
Python Integrated Tools | IntelliJ IDEA Documentation
July 19, 2026 - The following is only valid when Python and Python Community Edition plugins are installed and enabled · Use this page to configure requirements management file, default test runner, and documentation strings treatment
JetBrains
plugins.jetbrains.com › plugin › 14321-blackconnect
BlackConnect - IntelliJ IDEs Plugin | Marketplace
Connect to blackd and format your Python code without creating a new black process! Avoid overhead of starting a new black process on each file save by making a quick...
Read the Docs
black.readthedocs.io › en › stable › integrations › editors.html
Editor integration - Black 26.5.1 documentation
Press the Detect button near Path input. The plugin should detect the blackd executable. In Trigger Settings section check Trigger on code reformat to enable code reformatting with Black. Format the currently opened file by selecting Code -> Reformat Code or using a shortcut.
JetBrains
jetbrains.com › guide › tips › reformat-code-or-file
Reformat Your Code - JetBrains Guide
June 12, 2024 - Lastly, there are additional settings you can use for reformatting your code which you can access by invoking the "Reformat Code Dialog" ⌘⌥⇧L (macOS) / Ctrl+Alt+Shift+L (Windows/Linux). The options here will vary depending on which type of code you're working with so try it out and see what you can learn! Want to learn more? Check out the in depth reformatting tutorial for IntelliJ IDEA ·
YouTube
youtube.com › intellij idea by jetbrains
Code Formatting in IntelliJ IDEA (2020) - YouTube
IntelliJ IDEA lets you reformat your code according to the requirements you've specified in the Code Style settings. In this screencast we're going to look a...
Published: May 20, 2020
Views: 14K
JetBrains
jetbrains.com › help › pycharm › configuring-code-style.html
Configuring code style | PyCharm Documentation
August 7, 2026 - You can export both project-level and IDE-level schemes in the IntelliJ IDEA code style XML or EditorConfig format (if the EditorConfig plugin is enabled).
Top answer 1 of 16
239
The formatting shortcuts in Intellij IDEA are :
- For Windows : Ctrl + Alt + L
- For Ubuntu : Ctrl + Alt + Windows + L
- For Mac : ⌥ (Option) + ⌘ (Command) + L
2 of 16
47
You can do this with Save Actions plugin Refer This article on how to configure the plugin.
Save Actions plugin Supports configurable, Eclipse like, save actions, including "optimize imports", "reformat code", "rearrange code", "compile file" and some quick fixes for Java like "add / remove 'this' qualifier", etc. The plugin executes the configured actions when the file is synchronised (or saved) on disk.
- Install the plugin
- Go to Settings > Other settings > Save actions
- Tick Activate save actions on save
- Tick Reformat file
- Apply > OK

I prefer the hot-keys though, For Mac,
To format the code : Ctrl+Alt(Option)+L
And additionally I do,: Ctrl+Alt(Option)+O , This will remove unused imports and format the import list as well.
Stack Overflow
stackoverflow.com › questions › 62580212 › how-to-get-the-same-python-code-formatting-with-pycharm-and-vim
intellij idea - How to get the same Python code formatting with PyCharm and Vim? - Stack Overflow
We exported .code_editor configuration file from the PyCharm of the first developer. However, most of the exported formatting options are proprietary to intelliJ IDE, starting with "ij_" prefix.
IQCode
iqcode.com › code › other › reformat-intellij
reformat intellij Code Example
October 18, 2021 - // Mac CMD + Option + L // Windows Ctrl + Alt + L
Call: +917738666252
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207060945-Format-Code-on-Save
Format Code on Save – IDEs Support (IntelliJ Platform) | JetBrains
October 2, 2012 - I found this http://stackoverflow.com/questions/946993/intellij-reformat-on-file-save which awsers my question. Sory for the spam. ... If you wanted a fast, simple, rather brash solution that doesn't muck around with settings, plugins, extra ; characters, nor modifies your current keymap bindings, nor gives you yet another key binding to have to remember etc, this is what I do: I just use a shell script to automatically run the following python script in separate terminal when i start pycharm or another intellij IDE.
JetBrains
jetbrains.com › help › idea › settings-code-style.html
Code Style | IntelliJ IDEA Documentation
1 month ago - IntelliJ IDEA displays the indentation information in the status bar of the editor. You can click the indentation information to see the available actions, such as enable or disable this option, and change the current indentation to the ones specified in the Code Style settings for the specific language.
YouTube
youtube.com › shorts › DX5C19cmX9o
IntelliJ IDEA coding tips - reformat - YouTube
#intellijidea #intellij #java #jetbrains #programming #shorts
Published: November 24, 2023
IQCode
iqcode.com › code › other › format-code-intellij
format code intellij Code Example
March 12, 2022 - In the tree-structure, right click on the folder you like to reformat, choose "Reformat code" from the menu. ... Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond. Sign up · Develop soft skills on BrainApps Complete the IQ Test ... format whole project intellij java format intellij code format java intellij how to format code in intellij windows auto format code in intellij intellij format code on intellij how to reformat code to what i want intellij format all code in project formatting in intellij idea shortcuts for formating code in intelli