~~PAGEIMAGE:tools:vscode:tips:select_language_mode:media:20231026-154103.png~~
====== Select Language Mode for Given Files ======
{{template>:meta:template:pageinfo#tpl |desc=}}
When you use __a new file suffix unknown to VS Code__, the code in the file will not be
displayed in a __highlight style__. If you want to apply an existing style (language mode) to such a file,
e.g. as in the [[#demo|Demo]], use the ''Shell Script'' mode for ''*.tc'' files. You can do the followings:
- Press CtrlShiftP and then
select Preferences: Open User Settings. \\
{{:tools:vscode:tips:select_language_mode:media:20231026-110529.png?direct}} \\ \\
- Type ''file.association'' and Select Workspace. Fill in the
Item and Value pairs as needed. \\
{{:tools:vscode:tips:select_language_mode:media:20231026-111607.png?direct}} \\ \\
- If you don't know the language modes that exist in VS Code, press Ctrl
K and then M to list them. ((note:>If **Vim** mode is enabled,
disable it before trying to use shortcuts. Because M conflicts with the Vim
[[https://vimdoc.sourceforge.net/htmldoc/motion.html#mark|mark]] command.)) \\
{{:tools:vscode:tips:select_language_mode:media:20231026-112426.png?direct |}}
===== Demo =====
{{:tools:vscode:tips:select_language_mode:media:20231026-154103.png?direct}}
{{template>meta:template:refnote#note}}