You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "excitedbox (via GitHub)" <gi...@apache.org> on 2025/03/27 10:54:35 UTC

[I] Better Palette/Snippet system [netbeans]

excitedbox opened a new issue, #8363:
URL: https://github.com/apache/netbeans/issues/8363

   ### 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: 
   <div class="{style, input, $defaultValue, "hint text"}"> {inner, textField, "hello world","hint text"} </div>
   
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] Better Palette/Snippet system [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #8363:
URL: https://github.com/apache/netbeans/issues/8363#issuecomment-2786837991

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [I] Better Palette/Snippet system [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #8363: Better Palette/Snippet system
URL: https://github.com/apache/netbeans/issues/8363


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists