a153
a153

Reputation: 51

VSCode extensions: code-outline for Perl .cgi files

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

Answers (1)

Quentin
Quentin

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.

The menu is between the End Of Line setting and the Feedback smiley face

Upvotes: 1

Related Questions