๐ป Visual Studio Code (VSCode) ๐ฎ โ
Visual Studio Code (VSCode) is a free, open-source code editor developed by Microsoft. It is highly customizable, supports a wide range of programming languages, and is popular for its speed, extensions, and user-friendly interface. VSCode is an excellent choice for Minecraft Bedrock development due to its powerful features and extension ecosystem. ๐ :mcpack:
๐ฅ How to Install VSCode โ
- Go to the official VSCode download page.
- Choose your operating system (Windows, macOS, or Linux). ๐ฅ๏ธ ๐ ๐ง
- Download and run the installer, then follow the on-screen instructions.
- Once installed, launch VSCode from your applications menu or start menu. โจ
๐งฉ How to Install Extensions โ
- Open the Extensions view in VSCode (
Ctrl+Shift+X). ๐ - Search for the extension name (e.g., "Blockception").
- Click Install. โ
๐ Recommended VSCode Extensions โ
- Blockception Extension (Recommended) ๐
- Snowstorm Extension (Recommended) โ๏ธ
- Code Lens ๐
โ๏ธ Recommended VSCode Configurations โ
These settings will improve your Bedrock development experience by providing better syntax highlighting, auto-completion, and file handling. ๐ฏ
๐ง How to Apply Settings โ
- Open User Settings:
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) to open the Command Palette ๐ฎ - Type "Preferences: Open User Settings (JSON)" and select it
- Or go to
File > Preferences > Settingsand click the "Open Settings (JSON)" icon in the top right
- Press
- Add the configuration below to your existing settings (merge with existing JSON) ๐
- Save the file (
Ctrl+SorCmd+S) ๐พ - Restart VSCode for all changes to take effect ๐
๐ Configuration Code โ
jsonc
{
// associations with jsonc instead of default json
"files.associations": {
"*.templ": "jsonc",
"*.modl": "jsonc",
"*.json": "jsonc",
"*.material": "jsonc",
"*.assert": "jsonc",
},
// I'm blind, so I need bigger indent in file tree
"workbench.tree.indent": 25,
// increase max memory for files
"files.maxMemoryForLargeFilesMB": 8192,
// schemas for JSON UI. Not perfect, but it's something
"json.schemas": [
{
"url": "https://kalmemarq.github.io/Bugrock-JSON-UI-Schemas/ui.schema.json",
"fileMatch": [
"*.ui.json",
"*.uidx",
"ui/**/*.json",
"!_global_variables.json",
"!_ui_defs.json"
]
},
{
"url": "https://kalmemarq.github.io/Bugrock-JSON-UI-Schemas/ui_defs.schema.json",
"fileMatch": [
"ui/_ui_defs.json"
]
},
{
"url": "https://kalmemarq.github.io/Bugrock-JSON-UI-Schemas/global_variables.schema.json",
"fileMatch": [
"ui/_global_variables.json"
]
}
]
}โ How to Verify Settings Applied โ
- Check file associations: Open any
.jsonfile in your Bedrock project - it should show "JSON with Comments" in the bottom right corner of VSCode - Check tree indent: Look at your file explorer - folder indentation should be more pronounced ๐ฒ
- Check JSON schemas: Open a UI file (like
ui/start_screen.json) - you should see auto-completion suggestions when typing โจ
โ ๏ธ Important Notes โ
- JSON Syntax: Make sure your JSON is valid - use a JSON validator if you get syntax errors ๐ง
- Merging Settings: If you already have settings, add these properties to your existing JSON object ๐
- Backup: Consider backing up your settings before making changes ๐พ
๐ค Why These Settings? โ
- File Associations: Ensures all Minecraft-related JSON files get proper syntax highlighting and validation. ๐จ
- Tree Indent: Makes the file explorer easier to read, especially for large projects. ๐
- Max Memory: Allows VSCode to handle large files without crashing. ๐ง
- JSON Schemas: Provides auto-completion and validation for UI files, reducing errors. โ
๐ง Troubleshooting โ
- Extension Not Working: Try reloading VSCode or reinstalling the extension. ๐
- Schema Validation Errors: Make sure your file matches the schema and the file path is correct. โ ๏ธ
- Performance Issues: Increase memory or disable unused extensions. ๐
๐ก Tips & Tricks โ
- Use
Ctrl+Pto quickly open files. โก - Use
Ctrl+Shift+Mto view all problems in your project. ๐ - Right-click the file explorer to collapse all folders for a cleaner view. ๐งน