Reputation: 301
I don't really get the function of palette. (IDE Tools -> Palette) Great tool, works nice in html and php, but in javascript it doesn't let me add anything nor does it show anything i could use. It is locked or something?
Upvotes: 0
Views: 568
Reputation: 17383
Why can't i use palette in netbeans 8.2?
You can, but probably not in the way that you want, assuming that you want to be able to use the Palette with JavaScript files, because:
While NetBeans does not provide a category for JavaScript in the palette, you could add one yourself, but it would have to be tied to one of the file types that are already supported (e.g. *.html or *.jsp, but not *.js). For example, you could:
<script>alert('Hello world!');</script>
into *.html files by double clicking that alert entry in the Palette.It is locked or something?
"locked" isn't the appropriate term since that would imply that you could somehow unlock the functionality, but you can't. At least not through the Palette user interface. NetBeans just doesn't support the use of the Palette with *.js files.
The alternative to using the Palette for JavaScript files is to add your own code templates: Tools > Options > Editor > Code Templates > select Language JavaScript > click New
Upvotes: 2