Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

VSCode syntax highlighting for custom shebang

$
0
0

At work we run python under a custom environment, and thus we use a non-standard shebang. I tested that VSCode recognizes python files without a .py extension if they have a shebang that's either #!/usr/bin/env python or /usr/bin/python or variants of these.

At work I use a shebang similar to this: #!/some/directory/envroot "$ENVROOT/bin/python" but vs code doesn't recognize this, so I have to manually set the language to python each time.

Is there a configuration somewhere that I can map a custom shebang to a language so I don't have to set it manually each time I open the file?


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>