Support highlight for constructor call
See original GitHub issueThe highlighter for Java cannot differ constructor from function call. Hope the syntax file can be edited so we can add colour to constructor call.
In this picture, the left File
is highlighted as class
, however the constructor call is highlighted as function.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Java Constructors (With Examples) - Programiz
In this tutorial, we will learn about Java constructors, their types, and how to use them with the help of examples. What is...
Read more >Constructor, operator "new" - The Modern JavaScript Tutorial
This constructor can't be called again, because it is not saved anywhere, just created and called. So this trick aims to encapsulate the...
Read more >How does Visual Studio syntax-highlight strings in the Regex ...
*I have wrapped the call to AddStyle() into one of my own functions anyway, and the string will be passed as a parameter,...
Read more >Generate a constructor quick action - Visual Studio (Windows)
Highlight the members you wish to have in your generated constructor: Highlight members ... Add a parameter to an existing constructor call.
Read more >Java Constructor Basics: What They Are & How to Use Them
Constructors are only called one at the time of object creation. ... braces at the end of the constructor; the code below highlights...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See constructor customization:
No problem!
Well, the setting does say it takes a URL, and spaces are not valid characters in URLs (hence the
%20
encoding). Although I agree that this may be confusing for new users, and it could be handled by the extension instead (you’d have to open a new issue for that).