The question title says it all. My organization uses a non-standard file extension on source code written using JavaScript. Changing the file extension to ".js" seems to activate IntelliSense.
However, I was wondering if the IntelliSense could be activated using the non-standard file extension.
Use the files.associations
setting :
"files.associations": {
"*.customExtension": "javascript"
}
From this issue (found in a web search ), it sounds like the TypeScript language service does not support non-standard extensions, so you won't be able to get semantic features like type-based completions (which I assumed was what you meant by IntelliSense). The techniques described in the other answers may give you basic syntax highlighting.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.