Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the Script Editor incorporate a Autocomplete feature? #76

Open
ajtruckle opened this issue May 17, 2024 · 3 comments
Open

Can the Script Editor incorporate a Autocomplete feature? #76

ajtruckle opened this issue May 17, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ajtruckle
Copy link
Owner

Is your feature request related to a problem? Please describe.
Visual Studio 2022 includes an autocomplete feature that is extremely useful for coding.

For example:

image

Describe the solution you'd like
Is it possible for the Script Editor to integrate a similar feature?

@ajtruckle ajtruckle added the enhancement New feature or request label May 17, 2024
@ajtruckle
Copy link
Owner Author

The Scintilla control does support Autocompletion as a concept. To quoute:

Autocompletion displays a list box showing likely identifiers based upon the user's typing. The user chooses the currently selected item by pressing the tab character or another character that is a member of the fillup character set defined with SCI_AUTOCSETFILLUPS. Autocompletion is triggered by your application. For example, in C if you detect that the user has just typed fred. you could look up fred, and if it has a known list of members, you could offer them in an autocompletion list. Alternatively, you could monitor the user's typing and offer a list of likely items once their typing has narrowed down the choice to a reasonable list. As yet another alternative, you could define a key code to activate the list.

It goes into more detail, but suffice to say, we would have come up with lists of keywords. It seems to be a large undertaking.

@cengizu
Copy link

cengizu commented Jun 5, 2024

It is a handy feature. With intelligent suggestions, users can quickly select appropriate options from the list instead of typing them out fully. 👍

@ajtruckle
Copy link
Owner Author

@cengizu
We have a set of keywords used for syntax highlighting, although it's uncertain if they offer sufficient information. I've observed that Notepad++ includes its own keyword set in XML files, yet it lacks a keyword list for XML/XSL. In contrast, I possess some keywords based on the Lexilla parsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants