A VS Code extension enhancement for Minecraft development that adds a code snippet repository with tagging and a scoreboard objective tracker to the explorer sidebar.
- Store and organize frequently used code snippets
- Tag snippets with categories (e.g., behavior, animation, functions)
- Search snippets by name, tag, or content
- Copy snippets directly into your editor
- View snippets in a dedicated sidebar view
- Automatically scan and track scoreboard objectives across your project
- Display usage count for each objective
- Navigate to locations where objectives are defined or used
- Automatically update when files change
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Search for "Minecraft Resource Toolkit"
- Click Install
- Download the
minecraft-resource-toolkit-v0.2.1.vsixfile - In VS Code, go to Extensions view (Ctrl+Shift+X)
- Click the "..." menu at the top of the Extensions view
- Select "Install from VSIX..."
- Choose the downloaded file
- View snippets in the "MC Snippet Repository" section of the Explorer sidebar
- Add new snippets with the "Add Snippet" button in the sidebar
- Search snippets with the "Search Snippets" button
- Copy snippet content by clicking on a snippet
- View scoreboard objectives in the "MC Scoreboard Objectives" section of the Explorer sidebar
- Refresh the list with the "Refresh Scoreboard Objectives" button
- See usage count and type for each objective
- Click on a location to jump to where the objective is used
minecraftDevToolkit.snippetsPath: Path to store snippet repository JSON file (defaults to workspace folder)minecraftDevToolkit.scanOnStartup: Automatically scan for scoreboard objectives when extension activates (defaults to true)
- Clone the repository
- Run
npm installto install dependencies - Make changes to the TypeScript source files in
src/ - Compile with
npm run compile - Package with
vsce package
src/: TypeScript source filesextension.ts: Main extension entry pointmodels/: Data models for snippets and scoreboardsproviders/: Tree data providers for VS Code explorer integrationutils/: Utility functions for file system and parsing
resources/: Icons and other resourcesout/: Compiled JavaScript files
- Added tag support for code snippets
- Implemented a full scoreboard objective tracker
- Added jump-to-location functionality
- Improved UI with custom theme-aware icons
- Enhanced documentation
- Initial release
- Basic snippet repository
- Simple scoreboard objective tracking
- Explorer sidebar integration
MIT
Enjoy!