Adding a custom VS Code setting for a file type (.pug)

How can I set a VS code setting active only an a certain file extension?

In my case it's "editor.renderWhitespace": "boundary" on all .pug and .jade files.




Place your settings within an object that has the keyword [jade] (Source):

    "[jade]": {
        "editor.renderWhitespace": "boundary",

The above will support both jade and pug files, you don't need to define it for both.


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.