May 4, 2024 • ☕️ 1 min read
日本語

Table Of Contents

When editing shell template files for chezmoi in VSCode, I will introduce a method to associate files with the extension .sh.tmpl with shellscript.

Configuration Steps

  1. Open Preferences: User Settings(JSON)

Press Command + Shift + P and select Preferences: Open User Settings (JSON).

  1. Add a configuration to associate *.sh.tmpl files with shellscript in the opened JSON file.
Copy
"files.associations": {
  "*.sh.tmpl": "shellscript"
}

With these steps, files with the .sh.tmpl extension will be treated as shellscript.


Relative Posts

Debug Next.js+Typescript in VSCode

December 24, 2020

ThunderMiracle

Blog part of ThunderMiracle.com