Skip to content

๐Ÿ’ป 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 โ€‹

  1. Go to the official VSCode download page.
  2. Choose your operating system (Windows, macOS, or Linux). ๐Ÿ–ฅ๏ธ ๐ŸŽ ๐Ÿง
  3. Download and run the installer, then follow the on-screen instructions.
  4. Once installed, launch VSCode from your applications menu or start menu. โœจ

๐Ÿงฉ How to Install Extensions โ€‹

  1. Open the Extensions view in VSCode (Ctrl+Shift+X). ๐Ÿ”
  2. Search for the extension name (e.g., "Blockception").
  3. Click Install. โœ…

These settings will improve your Bedrock development experience by providing better syntax highlighting, auto-completion, and file handling. ๐ŸŽฏ

๐Ÿ”ง How to Apply Settings โ€‹

  1. Open User Settings:
    • Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the Command Palette ๐ŸŽฎ
    • Type "Preferences: Open User Settings (JSON)" and select it
    • Or go to File > Preferences > Settings and click the "Open Settings (JSON)" icon in the top right
  2. Add the configuration below to your existing settings (merge with existing JSON) ๐Ÿ“
  3. Save the file (Ctrl+S or Cmd+S) ๐Ÿ’พ
  4. 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 โ€‹

  1. Check file associations: Open any .json file in your Bedrock project - it should show "JSON with Comments" in the bottom right corner of VSCode
  2. Check tree indent: Look at your file explorer - folder indentation should be more pronounced ๐ŸŒฒ
  3. 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+P to quickly open files. โšก
  • Use Ctrl+Shift+M to view all problems in your project. ๐Ÿ”
  • Right-click the file explorer to collapse all folders for a cleaner view. ๐Ÿงน