Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>STC Generic Container SnippetsNew to Visual Studio Code? Get it now.
STC Generic Container Snippets

STC Generic Container Snippets

SoronLiu

|
1 install
| (0) | Free
Snippets for STC C generic containers with trait flags
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

STC Snippets for C Generic Containers

Overview

STC Snippets is a lightweight VS Code extension that provides ready-to-use code snippets for theSTC C Generic Container Library. It helps C developers quickly declare and initialize STC containers with correct trait flags and standard boilerplate code, eliminating repetitive typing and reducing syntax errors.

Features

  • Full STC Container Support — Provides complete snippets for all common STC generic containers:

vec, deque, list, stack, queue, pqueue, hmap, hset, smap, sset

  • Correct Trait Flag Templates — Auto-generates standard STC trait flags for clone, drop, compare, and hash behaviors for custom types.

  • Standard Boilerplate Code — Quickly insert container declarations, initialization, iteration, and cleanup code following official STC conventions.

  • Pure C Standard Compatible — All snippets follow C11 / C17 / C23 standards without GNU extensions, perfect for cross-platform CMake projects.

  • Improve Coding Speed — Avoid repetitive container setup code and focus on business logic and data structure design.

Supported Containers

This extension includes snippets for the entire STC core container series:

  • Sequential Containers: vec, deque, list

  • Adapter Containers: stack, queue, pqueue

  • Hash Containers: hmap, hset

  • Sorted Containers: smap, sset

Usage

Simply type the container name prefix (e.g. stc vec, stc hmap) in your C source file and select the corresponding snippet. The extension will automatically generate complete container definitions and trait configurations.

Compatibility

  • Works with all modern C standards: C11, C17, C23

  • Fully compatible with standard STC library projects

  • Perfect match for CMake-based cross-platform C projects

Benefits

STC containers greatly simplify generic data structure programming in pure C. This extension makes STC development faster, cleaner, and less error-prone by providing standardized, ready-to-use code templates for every core container type.

License

MIT Copyright (c) 2026 Soron Liu

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