Sitemap

Automatically reformat code on save in IntelliJ

Jul 12, 2023
Press enter or click to view image in full size

Configure the IDE to reformat code in modified files automatically when your changes are saved.

  1. Press Ctrl+Alt+S to open the IDE settings
  2. select Tools | Actions on Save.
  3. Enable the Reformat code option.
  4. Click OK

--

--

Hirosh Tharaka
Hirosh Tharaka

Written by Hirosh Tharaka

BSc(Hons), CSM®, ISTQB® (CTFL, CTAL-TTA, CTAL-TM) | Technical Writer | Technical Tester (QA Lead)

No responses yet