Jump to content

AutoIt Extension for Visual Studio Code


Recommended Posts

v0.2.3 has been released:

  • Added indentation rules for automatic indents for keywords that indent/unindent on the next line (currently doesn't work when the keyword is input from Intellisense)
  • Implemented basic Go To Definition functionality for Functions and Variables (incidentally enables the Outline pane as well)
  • Added syntax highlighting rules to color user created functions differently from default AutoIt and standard UDFs (may be the same depending on the theme)
  • Added syntax highlighting for '$' part of variables (depends on theme)
  • Implemented command to kill running scripts set to Ctrl+Pause/Break

Rate and View on VS Code Marketplace

Star & Submit Issues on Github

Link to post
Share on other sites
  • 4 months later...
  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

I've recently taken over the development of an extension for Visual Studio Code, which I've found to have a great mix of features as a code editor. I've recently been able to get the extension to a po

Just made a big release (v0.1.5), where I've gotten more IntelliSense features working Added in function signature helpers (parameter info)  See it in action AutoIt commands and keybindin

I've released v0.1.8, which includes: Improved function signature helpers Parameter position in function has much-improved detection (no longer tripped up by commas in quotes)

Posted Images

Released v1.0.0. Big leap in version number, but I just switched to SemVer after reading about it.

 

  • Improved Go To Definition to search include files (relative and UDFs)
  • Used Parcel.js to bundle extension into single file
  • Started work on consolidating Signature and Hover files for smaller extension size
  • Switching to SemVer for versioning
  • Made code-style improvements for consistency

Rate and View on VS Code Marketplace

Star & Submit Issues on Github

Link to post
Share on other sites
  • 6 months later...

Just Released v1.0.5, here are the changes since v1.0.0:

1.0.5 - 2020-05-07

Changed

  • Stopped completion suggestions from showing in comments
  • Reworked some of the statement snippets for accuracy and to show up properly as suggestions
  • Indented function declarations will now be detected

1.0.4 - 2020-01-10

Added

  • Code folding for #Region/#EndRegion & Func/EndFunc

Changed

  • Fixed symbol detection for Function declarations

1.0.3 - 2019-11-19

Changed

  • Fixed local function completions

1.0.2 - 2019-11-12

Added

  • Even more missing syntax highlighting for SendKeys
  • Missing information for MouseClick() and MouseClickDrag()function signature helpers

Changed

  • Some improvements to code for Completions

1.0.1 - 2019-10-23

Added

  • Completion, Hover and Signature help for _DebugArrayDisplay()
  • Missing Syntax Highlighting for SendKeys (including for ASCII and UNICODE characters (Send("{ASC 065}") or Send("{ASC 2709}")), repetition for single keys (Send("{DEL 4}") or Send("{S 30}")) and holding a key up or down (Send("{a down}") or Send("{a up}"))

Changed

  • Consolidated signature and hover for all Debug.au3 UDFs

Removed

  • Generated .map file from final .vsix file

 

Rate and View on VS Code Marketplace

Star & Submit Issues on Github

Link to post
Share on other sites
  • 5 months later...

I would like to thank the author of this add-on for VSC for his excellent work! After a long time I needed to write some AutoIt script and I was able to do it in my favorite editor. The ability to run help directly from a keyword is very useful. Great job!

Link to post
Share on other sites
  • 7 months later...

Releasing version 1.0.6 today, here's what's changed

Added

  • Implemented Diagnostics (Problems tab and red squiggles) for AutoIt scripts
  • Completions and Hovers for InetConstants

Changed

  • Switched from Parcel to Webpack for bundling
  • Reworked the wordPattern
  • Optimized HoverProvider

 

Rate and View on VS Code Marketplace

Star & Submit Issues on Github

Link to post
Share on other sites
  • 7 months later...
  • 3 weeks later...
  • 2 weeks later...

Hi all,

I recently started using VSCode along with this extension, and I am really liking it thus far. Here's a list of questions / issues that I have put together --

  • I noticed that Ctrl+F5 doesn't run AutoIt3Wrapper. Is that by design?
  • Is there a shortcut for opening a #include file?
  • I know about using F12 for Go To Definition. Is there any way to "Jump Back" like in Scite?
  • What about bookmarks? They don't seem to exist without adding another extension.

These are the additional extensions that I am currently using --

Are there any others that you would recommend?

Thanks, Dan

Link to post
Share on other sites

Hi @Danp2,

18 hours ago, Danp2 said:

[...] and I am really liking it thus far [...]

I also enjoy it every day 😀 .

 

18 hours ago, Danp2 said:

Here's a list of questions / issues that I have put together [...]

Maybe I can help a bit.

  • Please check if the path is set and correct for AutoIt3Wrapper.au3 here:
    grafik.thumb.png.36987f6bed54f9812d395fc33670e4a4.png
  • Unfortunately F12 doesn't work properly to open #include UDFs/scripts.
    • I couldn't determine when it will work and when not, it's pity.
    • I use a small tool, Au3GotoDefinition (written by me, initial commit 14 Jul 2019), which runs in the background and replaced the unstable F12 functionality.
  • To jump back and forth I use the mouse keys:
    grafik.thumb.png.281cea083b946808b6322b69e7a4f967.png
    • I am pretty sure you will find "Keyboard Shortcuts" Ctrl+K Ctrl+S (to open the keyboard shortcuts) for doing this as well.
    • Update: I already found it:
       grafik.thumb.png.2eba6f1d44fe968b2eacf231c125c92f.png
       
  • Bookmarks are not available out of the box. Like you wrote, you have to add an extension.
    • This is basically the way to go with VSCode 😅

You ask about recommended extensions. This of course depends on your needs.
Here are some general useful extension that are programming language independent:

Best regards
Sven

________________
Stay innovative!

Edited by SOLVE-SMART
Link to post
Share on other sites
49 minutes ago, SOLVE-SMART said:

Please check if the path is set and correct for AutoIt3Wrapper.au3 here:

Yes, it's correct. It runs with F5, but not with Ctrl+F5

Quote

I am pretty sure you will find "Keyboard Shortcuts" Ctrl+K Ctrl+S (to open the keyboard shortcuts) for doing this as well

Thanks! Go Forward and Go Back is exactly what I was missing.

 

Link to post
Share on other sites
  • 3 weeks later...

Hi @Danp2 ,

in my case only Ctrl+Shift+O for "Go to Symbol in Editor..." is working.

grafik.thumb.png.1bf1cd50b3c8a1bec88d1f1ee158e891.png

I usually just use F1, type @ for a unsorted list or @: for a sorted list of functions and variables.

grafik.png.b2a16ba6947896d2f3d0d027e93b3726.png

Is this helpful in any way, Dan?

Best regards
Sven

________________
Stay innovative!

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...