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 comment
Share on other sites

  • 4 months later...

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 comment
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 comment
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 comment
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 comment
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 comment
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

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
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 comment
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!

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
Share on other sites

  • 2 months later...

Released v1.0.8 today, here's the updates:

Added

  • Open include file from the current line with Alt+i/Command Palette (thanks Danp2)
  • Insert UDF Header function (thanks Danp2)
  • UDF Creator option in Settings to auto populate author when inserting a Function Header
  • AutoIt Map functions (thanks steipal)
  • Colorized output when running scripts (thanks Danp2)
  • Restart script (thanks vanown)
  • Abbreviations from SciTe4AutoIt as Snippets
  • ( is now a trigger character to accept a function completion and will place both parens and initiate signature help for the function.

Changed

  • The AutoIt Help command will now open on blank lines (thanks Danp2)
  • Updated the descriptions of the path settings
  • Refactored filepath finding code (thanks Danp2)

Fixed

  • Code folding for If, Switch, For, While, With, #comments-start, #cs, #comments-end and #ce (thanks Danp2)
  • Go to Workspace Symbol functionality restored

Rate and View on VS Code Marketplace

Star & Submit Issues on GitHub

Link to comment
Share on other sites

  • 5 months later...

Releasing v1.0.9 today, here's the changelog:

Added

  • Set VS Code to default to 4-space tabs for indentation like SciTe
  • Output window overhaul (thanks to @vanowm), including:
    • Additional colors
    • Multiple output panels
    • An encoding option
    • Options to keep output from previous runs
    • Options to show process ID and times
  • Option to show #regions as symbols in Outline and symbol search (thanks to @Danp2)
  • Syntax highlighting for Au3Stripper directives (thanks to rcmaehl)
  • Adds a wait for file save to finish before running certain commands (thanks to @vanowm)
  • Support for Sticky Scroll
  • Symbols nest in the Outline
  • SmartHelp options that allow launching of help files (e.g., CHM) for UDFs (thanks to @Danp2)

Changed

  • Tidy now runs through AutoItWrapper (thanks to @vanowm)
  • MsgBox/Console debugging line generation improved (thanks to @Danp2)
  • Paths to AutoIt execuables can now be relative to the AutoIt executable in settings (Thanks to @Danp2)

Fixed

  • Syntax highlighting for #include lines followed by comments (thanks to @Danp2)
  • Makes regex for #include non-greedy (thanks to @Danp2)
  • Limits header insertion and include opening to be limited to AutoIt scripts (thanks to @vanowm)

Rate and View on VS Code Marketplace

Star & Submit Issues on GitHub

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...