Semantic highlighting of parameters
See original GitHub issueThis will make it easier to visually distinguish between the name of a function and its parameters when definining it.
let somelongname barfoo someotherparam onelast = ....
Here it would be easier to spot that somelongname
is the function name, and the rest are parameters.
It will also make it easier to distinguish between local let bindings/values and the parameters from the outside.
Other languages have this distinction (e.g. javascript). Imo it’s even more useful in F# because there’s no symbols (
)
look for.
It would also be useful to have semantic highlight when a function is called. So that when you invoke/call somelongname myparameter yetanotherparameter true
, you could easily see that somelongname
is being called, and the rest are just passed to it as params.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Semantic Highlight Guide | Visual Studio Code Extension API
Semantic Highlight Guide. Semantic highlighting is an addition to syntax highlighting as described in the Syntax Highlight guide. Visual Studio Code uses ...
Read more >Make Sense of Your Variables at a Glance with Semantic ...
PyCharm uses semantic highlighting to assign a different color to each parameter and local variable: the “namespaces” parameter is now a ...
Read more >Python Semantic Highlighting of Parameters in Function ...
Textmate scopes allow for the differentiation between parameters and parameters in function calls. The first image is the desired parameter ...
Read more >How to enable semantic highlighting in VS Code
Semantic syntax highlighting makes code easier to read and can be enabled in VS Code easily.
Read more >Parameters that are also functions - semantic syntax ...
I want to be able to define a new style for types that are both parameters and functions. I can change the parameter...
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
@drhumlen I’m glad you like it! We’ve decided to not change any defaults with new highlighting capabilities. I also have an option to highlight parameters differently too, but it’s in my custom fcs build and my PR enabling this feature is basically ignored by dsyme. Can’t help it. Also, values of literals are properly shown in tooltips now 😃
I’m actually trying to get this thing done now but I guess it’s kinda hard to do it with parameter as I still can’t really find a “transition” between FSharpValue and FSharpParameter.
Looks kinda like this and I already like it because I can easily spot methods and funcs but it’s still not ideal as I’m quite a fan of having parameters highlited differently too.