An open API service indexing awesome lists of open source software.

https://github.com/shtrih/idea-for-autoit

How to coding AutoIt scripts in Intellij IDEA
https://github.com/shtrih/idea-for-autoit

autoit intellij

Last synced: 8 months ago
JSON representation

How to coding AutoIt scripts in Intellij IDEA

Awesome Lists containing this project

README

          

# Use Intellij IDE (or PhpStorm in my case) to write AutoIt scripts

## Enabling syntax highlighting

![Image of highlighted AutoIt code](images/autoit-syntax-higlighting.png)

1. Open TextMate Bundles window in PhpStorm: `File | Settings | Editor | TextMate Bundles` (https://www.jetbrains.com/help/idea/2020.2/textmate-bundles.html).
2. Add AutoIt bundle for Sublime Text editor. It's located in `Extras` folder of AutoIt installation:
`C:\Program Files (x86)\AutoIt3\Extras\Editors\Sublime Text`

![Image of highlighted AutoIt code](images/autoit-add-textmate-bundle.png)

## Adding AutoIt actions (Run, Syntax Check, etc.)

1. Open `File | Settings | Tools | External Tools`
2. Add some actions to `AutoIt` group:

![Image of highlighted AutoIt code](images/external-autoit-syntax-check.png)
![Image of highlighted AutoIt code](images/external-autoit-compile.png)
![Image of highlighted AutoIt code](images/external-autoit-run.png)

Now you can run opened AutoIt script from `Tools` menu:

![Image of highlighted AutoIt code](images/tools-autoit.png)

## Adding buttons on toolbar

![Image of highlighted AutoIt code](images/toolbar-autoit-actions.png)

1. Open `File | Settings | Appearance & Behavior | Menus and Toolbars` (https://www.jetbrains.com/help/idea/2020.2/menus-and-toolbars-appearance-settings.html).
2. Add new action on `Main toolbar`. Chose action in `External tools` submenu. Set icons for actions. I use [FamFamFam Silk Icons](http://famfamfam.com/lab/icons/silk/).

![Image of highlighted AutoIt code](images/toolbar-add-autoit-actions.png)

## How to map hotkey (e.g. F1) in PhpStorm to open AutoIt documentation for the word under the keyboard cursor

Run AutoIt script `AutoIt-Help-Hotkey-for-IntellijIDE.au3`. On first run it creates ini file with settings. By default it uses hotkey `Ctrl+Q` to open help file. Maybe you need adjust path to AutoIt installation.