TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: w64bit on December 11, 2020, 07:39:56 AM

Title: Automatic indenting fix tool
Post by: w64bit on December 11, 2020, 07:39:56 AM
Hi,
I am very new to LISP and I want to know if there is any tool to automatically fix indenting in existing lsp files (not something like parinfer when writing new code).
I am asking this because the content in some of my files is left aligned.
It seems I am asking too much but I want some order in my files and I think I'll learn faster if I first I can correct the indenting of my existing code.
Maybe there are several ways to indent lisp code but I'll take any simpler method you can suggest.
Thank you very much
Title: Re: Automatic indenting fix tool
Post by: kirby on December 11, 2020, 07:53:44 AM
See the ancient lisp beautifier tool lb.exe
http://www.theswamp.org/index.php?topic=37924.0 (http://www.theswamp.org/index.php?topic=37924.0)

You'll need to use DOSBox to run it
https://www.dosbox.com/ (https://www.dosbox.com/)
Title: Re: Automatic indenting fix tool
Post by: w64bit on December 11, 2020, 11:46:43 AM
Thank you very much.
Title: Re: Automatic indenting fix tool
Post by: PKENEWELL on December 11, 2020, 02:54:37 PM
Why not just load it into the Visual LISP Editor and use the "Format code in Editor" under the "tools" menu?
Title: Re: Automatic indenting fix tool
Post by: JohnK on December 11, 2020, 03:33:25 PM
Or in VS Code: <Ctrl-k Ctrl-f>
Title: Re: Automatic indenting fix tool
Post by: BIGAL on December 12, 2020, 04:00:13 AM
Or in Bricscad BLADE (Reformat Beautify)
Title: Re: Automatic indenting fix tool
Post by: w64bit on December 12, 2020, 11:54:38 AM
Beautiful!
Thank you very much.