TypeScript File Maker
A VS Code extension that helps you quickly create TypeScript files with proper boilerplate and templates.
Features
- Quick File Creation: Create TypeScript files with a single command
- Multiple Templates: Choose from various templates including:
- Basic TypeScript file
- Class
- Interface
- Function
- React Component
- Smart File Placement: Files are created in the same directory as your active editor or workspace root
- Input Validation: Ensures file names follow proper naming conventions
- Automatic Formatting: Generated code includes proper documentation comments
Usage
- Open the Command Palette (
Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux)
- Type "Create TypeScript File" and select the command
- Enter a file name (without the .ts extension)
- Select a template from the quick pick menu
- The file will be created and opened automatically
Requirements
- Visual Studio Code version 1.107.0 or higher
- A workspace folder must be open
Extension Settings
This extension does not contribute any VS Code settings at this time.
Known Issues
None at this time. Please report issues on the GitHub repository.
Release Notes
0.0.1
Initial release of TypeScript File Maker
- Create TypeScript files with multiple templates
- Support for basic, class, interface, function, and React component templates
- Smart file placement based on active editor location
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\ on macOS or Ctrl+\ on Windows and Linux).
- Toggle preview (
Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux).
- Press
Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!
| |