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

Better Palette/Snippet system #8363

Open
excitedbox opened this issue Mar 27, 2025 · 1 comment
Open

Better Palette/Snippet system #8363

excitedbox opened this issue Mar 27, 2025 · 1 comment
Labels
kind:feature A feature request pending-response Awaiting further information to be supplied

Comments

@excitedbox
Copy link

Description

I have noticed the current palette system does not easily allow adding additional items. This seems quite outdated and there is really no reason that one should need to edit netbeans libraries to add items.

Even adding customization GUI panels could easily be done using placeholder variables and configurable input fields.

Using a format like {label, field type, default value, hint} and "Some Text as" literals or using $ like in php to call or define a $variable = ; to organize more complex/longer default values.

Something like:

{inner, textField, "hello world","hint text"}

Would create a form with an input and text field to customize the code snippet.

This would already cover 99% of use cases but obviously there are several more advanced features such as conditions, loops, and macro templates that can expand the usefulness of the palette/snippets.

Use case/motivation

I believe this will speed up the process of implementing the ever-growing mass of framework components, writing better code without constantly having to look things up.

Related issues

No response

Are you willing to submit a pull request?

No

@excitedbox excitedbox added kind:feature A feature request needs:triage Requires attention from one of the committers labels Mar 27, 2025
@neilcsmith-net
Copy link
Member

You might be better looking at the code templates option, rather than the palette, for this. Options / Editor / Code Templates.

@neilcsmith-net neilcsmith-net added pending-response Awaiting further information to be supplied and removed needs:triage Requires attention from one of the committers labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature A feature request pending-response Awaiting further information to be supplied
Projects
None yet
Development

No branches or pull requests

2 participants