I was wondering what extension I could add to my vscode for .11ty.js files. Here is how the file looks with JS babel:
and with JSTL:
Related
Whenever you want to import a js/ts file in a js file, you will always have this path suggestor like this.
But there is none for SCSS or other CSS file types. As you can see there is a scss file in the same directory but VSCode didn't suggest it for me (we can not export SCSS from JS but the image just for example, VSCode didn't suggest for me on import either).
My folder already has 1 scss file.
Is there any setting or plugin that can help me with this that I may accidentally skip when finding for one in Settings and Extensions? Thanks.
I'm expecting it to auto suggest path/file like the above image.
I was wondering how I can use the built-in typescript extension apply to files with file extension .foo as if they were .tsx
How do i disable seeing the .html files when there is a pug file in visual studio code? Right now in my file explorer on the left i see both the .html and the .pug files.
I found the answer to this after some searching. Open .vscode folder and open the settings file and add the following code snippet:
"files.exclude": {
"**/*.html": { "when": "$(basename).pug"},
}
Html files will now be hidden. You can do this for other file types as well.
I couldnt find a way to do this through the settings editor in the app, had to do this manually with the config files.
Error highlighting and intellisense not working for .js file but .ts in VSCode version 1.18.1
Is there a way to auto detect extension on sublime when it sees jsx on files?
If it sees no jsx then it reverts to default? Currently, I am using babel-sublime
for highlighting syntax on jsx.
Open jsx file,
View -> Syntax -> Open All with Current Extension As -> Babel
Do the same for, say, .js files or .jsx files depending on your project setup, select JavaScript instead of Babel