Jump to content

How to format autoit code in VS Code - (Moved)


nill
 Share

Recommended Posts

I use Autoit plagin from Damien in VS Code

When I press Shift + Alt + F

I got message: There is no formatter for autoit

And there is no extention when I searh 

category:formatters autoit

 

Link to comment
Share on other sites

On 6/7/2023 at 6:35 PM, Danp2 said:

Press Ctrl+Shift+P to bring up the command palette and then type the word "tidy"  (without quotes) to locate the correct command.

I dont have any command for autoit

image.thumb.png.17278e5fa24d6065bba9a5125ff7c9de.png

Link to comment
Share on other sites

2 hours ago, Danp2 said:

I'm not sure that I understand your issue. There isn't a keystroke assigned to the Tidy command by default, but you can set one from the screen you showed above.

If the issue is that you can't locate the Tidy executable, then chances are that you don't have the full install of SciTE4AutoIt3.

I have tidy.exe installed

I set a keyboard shortcut to run Autoit tidy, a lot of entries appeared in the Output logs and they go for a very long time, but the code was not formatted, nothing was aligned

Edited by nill
Link to comment
Share on other sites

  • Developers
35 minutes ago, nill said:

a lot of entries appeared in the Output logs and they go for a very long time,

If this happens it should only happen the first time as that was a bug when buiding the tables Tidy requires and is only done one time per AutoIt3 release.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...