11

As of now, it is possible to change color for parameter variables to make them visually different from other variables.

But local and global variables have same the same tokens.


I'd like to have ability to change color(decaration) using semanticTokenColorCustomizations for global variables, local variables, parameter, variables, global functions, local functions, built-in functions, pulishers(events), maybe triggers.


This is the best you can do right now:


        "editor.semanticTokenColorCustomizations": {

            "enabled": true,

            "rules": {

                "parameter": { //color for parameters

                    "foreground": "#56c552"

                },

                "function.static:al": { //dimmed text color for publishers

                    "foreground": "#dcdcaaae"

                },

                "builtinfunctions": "#dcdc74" //text color for built-in functions

            }

        }


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team