I would like to take my mess of 'if' and 'for' loops and make them look professional and neat. Without having to manually tab the nested loops. Any ideas?
Asked
Active
Viewed 227 times
-3
-
2[Codereview stackexchange](https://codereview.stackexchange.com/) might be better for this type of question rather than StackOverflow. Also when asking the question, add the code relating to the question so that people can help you. – Thamognya Oct 03 '22 at 11:38
-
Per se not a question for SO. Personally I use cnpack (a great, free plugin which has "indent nicely" function of code. To identify function headers, I use figlet banner text with comments, and line describing the procedure / function. – MyICQ Oct 03 '22 at 11:39
-
Thank you so much, i really do appreciate it – Kyle Oct 03 '22 at 11:58
-
1Right-click the code view and select "Format code" or press Ctrl-D. You can modify the formatting settings in "Options-Language-Formatter-Delphi..." – Tom Brunberg Oct 03 '22 at 13:11
-
you are a legend – Kyle Oct 03 '22 at 13:19
-
1@Thamognya Please see [on-topic](https://stackoverflow.com/help/on-topic). This is a perfectly good place to ask about how to do a specific task with a program whether it is finalized or not. Codereview is more for review of algorithms in finalized programs or functions with respect to their programming style, not how to use the programming tool to "beautify" the source. The Delphi IDE (as most other IDE's) include functionality to standardize formatting of code. – Tom Brunberg Oct 03 '22 at 13:54
-
@MyICO, please see my previous comment. – Tom Brunberg Oct 03 '22 at 13:58
1 Answers
4
Right-click the code view and select "Format code" or press Ctrl-D.
You can modify the formatting settings in "Options-Language-Formatter-Delphi..."

Tom Brunberg
- 20,312
- 8
- 37
- 54