Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code colorize extension not working in javascript file

so I installed colorize extension into my vs code. Though the extension works in CSS files, it does not work in my javascript file. I use ChakraUI which means styling my code is usually within the javascript. I saw from the extension "how to install" that it is possible to style in a javascript file and all that should be done is to include "javascript" in the colorize.languages settings. I did this and it is still not working in my js file.

P.S: I am using the file extensions .jsx and .tsx

Edited: So I notice that if the file extension is js or ts it works but when I use jsx or tsx it doesn't. Does anybody know what I will write in the colorize.languages that will make the colorize extension work in a .jsx or .tsx file?

like image 845
Olaoluwa Anigboro-Napoleon Avatar asked Oct 25 '25 16:10

Olaoluwa Anigboro-Napoleon


1 Answers

Add the following code in your setting.json

"colorize.include": [
        
        "**/*.css",
        "**/*.scss",
        "**/*.sass",
        "**/*.less",
        "**/*.styl",
        "**/*.ts",
        "**/*.tsx",
        "**/*.js",
        "**/*.jsx"
    ]
like image 95
ATSudoDev Avatar answered Oct 28 '25 04:10

ATSudoDev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!