This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245783 - Option to color local variable declarations, as we do in Java.
Summary: Option to color local variable declarations, as we do in Java.
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 08:41 UTC by negora
Modified: 2014-11-10 05:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description negora 2014-07-18 08:41:42 UTC
When we edit Java source code, we've an option to color the local variable declarations with a different color. It's in "Options » Fonts & Colors » Syntax » Category: Local Variable Declaration". It's a very fast way to watch which local varibles take part in a method, at a glance.

I know that one can look for the "var" keyword for the same task. However, there may be more keywords too, such as "if" or "for", that have the same color and make this task slower.
Comment 1 Petr Pisl 2014-11-06 17:23:17 UTC
I have added Local Variable Declaration and Local Variable Use to the JavaScript Coloring as well. 

You can try it in the next daily build [1] or in the next continal build from web-main[2].

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
[2] http://deadlock.netbeans.org/job/web-main/
Comment 2 negora 2014-11-06 17:48:31 UTC
I'll try it as soon as I arrive home. Thank you a lot!
Comment 3 negora 2014-11-08 19:46:07 UTC
I've tested the today's build and the new feature works as expected. Thank you a lot :) .
Comment 4 Petr Pisl 2014-11-10 05:39:42 UTC
You are welcome.