TyPy VS Code Extension
🎨 Code Highlighting
The extension adds colors for new constructs
✨ Snippets
📦 Classes
class — creates a class structure
sclass — creates a class structure using use strict rules
cli — creates a new class structure with interface implementation
scli — creates a new class structure with interface implementation using use strict rules
📜 Interfaces
interface — creates a new interface with a function example
implements — adds requirements to a class for defining variables and functions
🔄 Loops & Control
for — creates a for-loop
as — checks data type at runtime
🔒 Types and Modifiers
type — quickly defines a custom data type
optional — keyword for creating variables that don’t require a value
readonly — creates a constant (immutable variable)
🧬 Generic Functions
generic — creates a generic function with arguments of different data types
sgeneric — creates a generic function with arguments of different data types using use strict rules
⚙️ Other
enum — creates a new enumeration example with parameters
use strict — enables strict mode
| |