Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>code Template ReplaceNew to Visual Studio Code? Get it now.
code Template Replace

code Template Replace

heekei zhuang

|
600 installs
| (1) | Free
replace your own code snippet
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

code-template-replace README

Usage:

  • input your customized replacement

    like this: {{replacementName}}

  • and create a replace file in folder 'templates'

  • warning: the filename extension of created file must be now your active document's filename extension .

  • Example:

    Now,I'm coding a html file,

        <html>
        <head></head>
        <body>
            {{header}}
        </body>
        </html>
    

    And I should create a "header.html" in "templates" folder;

        <div class="header">
            This is Header part.
        </div>
    

    Then I can Press F1, and input "Code Replace" to replace "{{header}}" into the content of "header.html".

    Surely, I also could Press key "Ctrl + Alt + 0" to Active the extension;

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft