AutoLISP Extension for VS code

AutoLISP Extension for VS code

Moshe-A
Mentor Mentor
627 Views
7 Replies
Message 1 of 8

AutoLISP Extension for VS code

Moshe-A
Mentor
Mentor

Guys hi,

 

This weekend i finally moved to VS Code, looks wonderful as with the features for debugging, watch variables at run time but i miss the console window of VLIDE

is there something that replace it?

 

Another issue:

i configure VS Code for AutoLISP as instructed in >> document << including setting default language for 'autolisp' but still when opening a new text file it does not default to .lsp what i am missing?

 

thanks in advance

Moshe

 

 

 

 

 

0 Likes
Accepted solutions (1)
628 Views
7 Replies
Replies (7)
Message 2 of 8

paullimapa
Mentor
Mentor

If you hit Ctrl+Shift+X combination on your keyboard and you see AutoCAD Autolisp Extensions listed then you're not missing anything:

paullimapa_1-1737232737568.png

Keep in mind that VS Code is not designed to just edit lisp code so when you select File>Open File it'll always show All Files (*.*) as the filetypes to list:

paullimapa_2-1737232869741.png

When you want to start a new AutoLISP code select File>New Text File

paullimapa_4-1737232949464.png

You'll be prompted to Select a Language:

paullimapa_5-1737233092311.png

After you click on Select a Language a dropdown window opens for you to select AutoLISP

paullimapa_6-1737233162750.png

Now when you start entering an AutoLISP function a window appears with a list of matching functions for you to select from:

paullimapa_7-1737233258110.png

 

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 8

ec-cad
Collaborator
Collaborator

In the document you linked here, it says:

"After creating a new file, you should save the file with the .lsp file extension"

So, the program defaults to plain text - probably .txt file extension.

ECCAD

0 Likes
Message 4 of 8

Moshe-A
Mentor
Mentor

@paullimapa  hi,

 

paul: "You'll be prompted to Select a Language"

thank you for that but on my VS code is does not pop that menu, maybe i am missing some setting?

 

 

0 Likes
Message 5 of 8

Moshe-A
Mentor
Mentor

@ec-cad  hi,

 

thanks 

 

see my link at the bottom is says : Now when a new file is created in VS Code, it will default to the 'AutoLISP' format without first saving the file.

maybe 'AutoLISP' format means something else other then .LSP ?

 

does this works for you?

 

 

 

 

 

0 Likes
Message 6 of 8

paullimapa
Mentor
Mentor

That's odd...again here are the steps I take to start a new file with VS Code window opened:

1. Click on File>New Text File or Ctrl+N keyboard combination:

paullimapa_0-1737270843409.png

2. I then get an Untitled-1 tab for the new document and at the first row of this new blank page I see the Select a Language text option

paullimapa_1-1737270895972.png

3. By default the current Language Mode can be seen in the lower right hand corner of the VS Code window which in this case is Plain Text

4. Since you don't see the Language Mode selection option, you can actually click on the Plain Text in the status bar at the lower right hand corner and in the middle of the top bar will drop down a window for you to select the Language Mode:

paullimapa_2-1737271133379.png

Likewise, after opening a file that has a .lsp file extension VS Code should automatically recognize this as AutoLISP because you have that extension installed:

paullimapa_3-1737271308113.png

If you want to change this Language Mode, you can also select AutoLISP in the status bar in the lower right hand corner and again the dropdown window appears for you to select another Language Mode:

paullimapa_4-1737271393892.png

 

 

 

 

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 8

Moshe-A
Mentor
Mentor
Accepted solution

@paullimapa + @ec-cad  hi,

 

Here is an update...when selecting  New Text File     Ctrl+N  (as i said i do not see select language) at the bottom left i see Autolisp as

Select language mode this i assume is the result of settings autolisp in Preferences\settings\Default language field.

when i pick File\save the default offered is .lsp so i think i will settle with this 😀

 

Thank you very much guys

Moshe

 

 

 

0 Likes
Message 8 of 8

paullimapa
Mentor
Mentor

Looks like you got it…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes