Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>SC Angular SnippetsNew to Visual Studio Code? Get it now.
SC Angular Snippets

SC Angular Snippets

sc-angular-generator

|
12 installs
| (1) | Free
Ready-made Angular snippets (components, services, pipes, interceptors).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

📦 SC Angular Snippets

⚡ Ready-made Angular snippets for faster Angular development.
Includes Components, Services, Interceptors, Pipes, Directives, Guards, Modules, and Resolvers.

🚀 Usage

Type the snippet prefix in a .ts file and press Tab / Enter to expand.

Prefix Generates
ng-svc Angular Service
ng-cmp Angular Component (with template file)
ng-cmp-inline Angular Component (inline template)
ng-pipe Angular Pipe
ng-dir Angular Directive
ng-guard Angular Route Guard
ng-mod Angular Module
ng-resolver Angular Resolver
ng-int HTTP Interceptor (basic)
ng-int-auth HTTP Interceptor (with JWT token)

📂 Installation

🔹 Option 1: Direct Snippet Import

  1. Open VS Code.
  2. Go to File > Preferences > Configure User Snippets.
  3. Create a new snippet file (or select typescript.json).
  4. Paste the content of angular-snippets.code-snippets.
  5. Restart VS Code.
  6. Start typing prefixes like ng-svc, ng-cmp → press Tab → boom 🚀

🔹 Option 2: As VS Code Extension

  1. Download/Clone this repository.
  2. Folder structure should look like:
    sc-angular-snippets/
    │── package.json
    │── README.md
    │── snippets/
        └── angular-snippets.code-snippets
    
  3. Open VS Code → Extensions → ⋮ (menu) → Install from VSIX.
  4. Select the built .vsix / .zip file.
  5. Done ✅

📝 Example

Typing:

ng-svc

Expands to:

import { Injectable } from "@angular/core";

@Injectable({
  providedIn: "root",
})
export class MyServiceService {
  constructor() {}
}

👨‍💻 Author

Satendra Rajput
🔗 satendracoder.com 💼 LinkedIn: linkedin.com/in/satendracoder 📸 Instagram: instagram.com/satendracoder1
▶️ YouTube: youtube.com/@satendracoder
🐦 Twitter/X: twitter.com/satendracoder


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