A simple Acode plugin that adds autocomplete suggestions for variable names
declared with const, let, or var in the current file.
- Scans the current file for patterns like:
const name = ...let name = ...var name = ...
- Provides those names as suggestions when you type in the editor.
- Works well for quick scripts and small projects.
- On load, the plugin attaches to Acode's editor via
editorManager. - It adds a custom Ace completer (
editor.completers.push(...)). - The completer:
- Reads the entire file content
- Extracts variable names with a regex
- Returns them as autocomplete candidates
- Put all files into a folder called
var-suggest:plugin.jsonmain.jsreadme.mdchangelogs.md
- Zip the
var-suggestfolder. - Load/install the zip in Acode as a plugin.
- Open a JavaScript file and start typing to see suggestions.
- Only looks for
const,let,varpatterns. - Does not understand imports, scopes, or other languages.
- Meant as a lightweight helper, not a full IntelliSense engine.