
A comprehensive VSCode extension providing development utilities for Node.js, GO, Flutter, Git, and general productivity tools. Designed for personal use to streamline coding workflows.
Features
General Utilities
- Insert Random Values: Quickly insert random UUIDs, numbers, or strings into your code via context menu or command palette.
- Chrome without CORS: Launch Chrome with CORS disabled for testing purposes (supports Windows, macOS, Linux).
- Git File Deletion: Remove files from Git tracking without deleting them locally.
Node.js Support
- Run NPM Scripts: Easily execute scripts defined in
package.json.
- Package Management: Update dependencies or devDependencies.
- Project Setup: Install common packages (Express, JWT, CORS, etc.) for new projects.
- Code Formatting: Format code using Prettier.
- TypeScript Setup: Initialize TypeScript configuration and build setup.
- Express File Upload: Install
express-fileupload package.
- VSCE Tools: Update and build VSCode extensions.
GO Support
- Project Management: Create new web projects with Gin framework, run projects, and manage modules.
- Build Tools: Cross-platform builds for different GOOS/GOARCH combinations.
- Swagger Integration: Generate Swagger documentation for GO APIs.
- Module Management: Upgrade and tidy go modules.
Flutter Support
- Run & Build: Run Flutter apps on web (debug/release) with different renderers (Canvaskit/HTML).
- Build APKs: Generate release APKs and app bundles.
- Code Formatting: Fix and format Dart code.
- Pub Publishing: Dry-run package publishing.
- Project Repair: Clean and recreate Flutter projects.
- Doctor & Upgrade: Check Flutter environment and upgrade SDK.
Git Integration
Basic Operations
- Archive (zip): Create a ZIP archive of the current HEAD.
- Rebase Pull: Pull with rebase to avoid merge commits.
- Global Config: Set and view global Git username/email.
Advanced Operations
- Diff Branches: Compare current branch with any other branch (local or remote) and save the diff as a patch file.
- Diff Uncommitted: Export staged or unstaged changes as a patch file (
staged.diff or unstaged.diff).
- Apply Patch: Select and apply a patch file from your file system.
Code Snippets
Extensive collection of snippets for:
- Common programming patterns
- React, Ant Design, Express
- Node.js, PHP, YAML
- Dart, Android XML
- GO, Mongoose (TypeScript)
- Next.js, and more
Installation
Install from the VSCode Marketplace.
Usage
Command Palette
Access all commands via Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) and type "oms:".
Activity Bar Views
The extension adds a new icon to the activity bar. Click it to access categorized views:
- Flutter: Flutter-specific commands
- Node-Js: Node.js project tools
- GO: GO development utilities
- Git: Git operations
- Utils: General utilities
Right-click in the editor to access "OMS" submenu for inserting random values.
Snippets
Type snippet prefixes in supported files to trigger IntelliSense suggestions.
Git Workflows
Comparing Branches
- Open the Git view in the activity bar
- Click "Diff Branches"
- Select a branch to compare from the quick pick menu
- The diff will be saved as
changes.patch in your workspace
Exporting Changes as Patches
- Open the Git view in the activity bar
- Click "Diff Uncommitted"
- Choose "Staged" or "Unstaged" changes
- A patch file (
staged.diff or unstaged.diff) will be created
Applying Patches
- Open the Git view in the activity bar
- Click "Apply Patch"
- Select a
.patch or .diff file from the file dialog
- The patch will be applied to your working directory
Requirements
- VSCode ^1.52.0
- Node.js (for Node.js features)
- GO (for GO features)
- Flutter SDK (for Flutter features)
- Git (for Git features)
Contributing
This extension is for personal use. For issues or suggestions, please contact the author.
License
Personal use only.