Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Code Templates ExtensionNew to Visual Studio Code? Get it now.
Code Templates Extension

Code Templates Extension

code-templates-extension

| (0) | Free
Create, insert and manage custom code templates - boost your productivity!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Templates Extension

Extension Icon

Boost your productivity with custom code templates! Create, manage, and insert reusable code snippets with ease.

Features

🧩 Template Management

  • Create templates from scratch or from selected code
  • Insert templates anywhere in your code
  • Delete templates with confirmation
  • Copy template content to clipboard

⚡️ Quick Access

  • Dedicated sidebar with all templates
  • One-click file creation from templates
  • Context menu integration (right-click)
  • Activity Bar icon for quick access

🔄 Workflow Integration

  • Create templates directly from editor selections
  • Insert templates at cursor position
  • Supports all programming languages
  • Works with any file type

Installation

  1. Open Extensions sidebar in VS Code
  2. Search for "Code Templates Extension"
  3. Click Install
  4. Reload VS Code when prompted

Usage

🆕 Creating Templates

  1. From scratch:
    • Click the "+" icon in the sidebar
    • Or use command palette: Create Template
  2. From selection:
    • Select code in editor
    • Right-click → Create Template from Selection

📋 Using Templates

  1. Insert in current file:
    • Place cursor
    • Right-click → Insert Template
    • Or use command palette
  2. Create new file:
    • Click template in sidebar
    • Enter file name and location

🗑️ Managing Templates

  • Delete: Right-click template → Delete
  • Copy: Right-click template → Copy
  • Open folder: Command palette → Open Templates Folder

Customization

Templates are stored in:

  • Windows: %APPDATA%\Code\User\globalStorage\code-templates-extension\templates
  • Mac/Linux: ~/.config/Code/User/globalStorage/code-templates-extension/templates

You can directly edit template files in this folder.

Contributing

Contributions welcome! Please fork the repository and submit pull requests: GitHub Repository

License

MIT License - see LICENSE for details

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