Author Topic: Automatic indenting fix tool  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

w64bit

  • Newt
  • Posts: 78
Automatic indenting fix tool
« 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

kirby

  • Newt
  • Posts: 127
Re: Automatic indenting fix tool
« Reply #1 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

You'll need to use DOSBox to run it
https://www.dosbox.com/

w64bit

  • Newt
  • Posts: 78
Re: Automatic indenting fix tool
« Reply #2 on: December 11, 2020, 11:46:43 AM »
Thank you very much.

PKENEWELL

  • Bull Frog
  • Posts: 317
Re: Automatic indenting fix tool
« Reply #3 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?
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt

JohnK

  • Administrator
  • Seagull
  • Posts: 10626
Re: Automatic indenting fix tool
« Reply #4 on: December 11, 2020, 03:33:25 PM »
Or in VS Code: <Ctrl-k Ctrl-f>
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
Re: Automatic indenting fix tool
« Reply #5 on: December 12, 2020, 04:00:13 AM »
Or in Bricscad BLADE (Reformat Beautify)
A man who never made a mistake never made anything

w64bit

  • Newt
  • Posts: 78
Re: Automatic indenting fix tool
« Reply #6 on: December 12, 2020, 11:54:38 AM »
Beautiful!
Thank you very much.