Reputation: 51
I'm trying to use Visual Studio Code for Perl (on Debian 9). I have installed VSCode extensions:
Extension code-outline works great for .pl files but doesn't for .cgi files (although both .pl and .cgi recognized as Perl files). I can't find any info for how to fix it. Maybe someone did the same already? How to make code-outline extension works for .cgi files too?
Upvotes: 4
Views: 2212
Reputation: 943981
File extensions don't really matter.
In the bottom right of the Visual Studio Code window will be a menu where you can pick the language you are working on.
It won't default to Perl for files with a .cgi
extension, but you can change that.
Upvotes: 1