Editing Files
The built-in file editor uses Monaco (the same editor as VS Code) to provide a powerful editing experience with syntax highlighting, search, and more.
Opening the Editor
- Navigate to the file you want to edit
- Click on the filename
- The editor opens with the file content
Editor Features
Syntax Highlighting
The editor automatically detects file types and applies syntax highlighting:
- YAML/YML - Configuration files
- JSON - Data files, configurations
- Properties - Java properties files
- JavaScript - Scripts
- Shell - Bash scripts
- Plain Text - Other text files
Line Numbers
Line numbers are displayed on the left side, making it easy to reference specific lines when troubleshooting.
Code Folding
Collapse sections of code by clicking the arrows next to line numbers. Useful for large configuration files.
Editing Tips
Find and Replace
- Find:
Ctrl+F(Windows) orCmd+F(Mac) - Replace:
Ctrl+H(Windows) orCmd+H(Mac)
Use regular expressions for advanced search patterns by clicking the regex button.
Go to Line
Press Ctrl+G (Windows) or Cmd+G (Mac) to jump to a specific line number.
Multiple Cursors
Hold Alt and click to add multiple cursors. Type to edit multiple locations at once.
Undo and Redo
- Undo:
Ctrl+Z(Windows) orCmd+Z(Mac) - Redo:
Ctrl+Shift+Z(Windows) orCmd+Shift+Z(Mac)
Saving Changes
Save
Click the Save button or press Ctrl+S (Windows) / Cmd+S (Mac).
Remember to restart your server after editing configuration files for changes to take effect.
Save and Close
Click Save & Close to save and return to the file browser.
Discard Changes
Click Cancel or close the editor tab to discard unsaved changes. You'll be prompted to confirm.
Common Files to Edit
Server Properties
The main server configuration file. Common settings:
# Server name shown in server list
motd=Welcome to My Server
# Maximum players allowed
max-players=20
# Server port
server-port=25565
# Game mode (survival, creative, adventure)
gamemode=survivalYAML Configuration
Plugin and mod configs use YAML format:
# Example plugin config
settings:
debug: false
language: en
features:
enabled: true
options:
- feature1
- feature2YAML is sensitive to indentation. Use spaces, not tabs, and maintain consistent spacing.
JSON Files
Data files like whitelists and bans use JSON:
[
{
"uuid": "player-uuid-here",
"name": "PlayerName"
}
]JSON requires strict formatting. Missing commas or brackets will cause errors.
Editor Settings
Access editor settings from the gear icon:
- Font Size - Adjust text size
- Theme - Light or dark mode
- Word Wrap - Wrap long lines
- Tab Size - Spaces per tab
Read-Only Mode
If you have Read permission only, the editor opens in read-only mode. You can view files but cannot make changes.
File Size Limits
- Files up to 10 MB can be edited in the browser
- Larger files should be downloaded, edited locally, and re-uploaded
Best Practices
Always Backup First
Before editing important files:
- Create a backup
- Or copy the file to another location
Stop the Server
For critical configuration files:
- Stop the server
- Make your changes
- Save the file
- Start the server
This prevents conflicts with files being read while you edit.
Validate Syntax
- YAML: Check indentation carefully
- JSON: Ensure all brackets match
- Properties: Use correct
key=valueformat
Test Changes
After saving:
- Restart the server
- Check the console for errors
- Verify the changes work as expected
Troubleshooting
Editor Won't Load
- Try a different browser
- Clear browser cache
- Check if the file is very large
Changes Not Taking Effect
- Did you save the file?
- Did you restart the server?
- Check for syntax errors in the console
Syntax Errors
Common causes:
- YAML: Wrong indentation, missing colons
- JSON: Missing quotes, commas, or brackets
- Properties: Spaces around equals signs
Check your game's documentation for correct syntax.
File Locked
If you can't edit a file:
- Check your permission level
- Stop the server (file may be in use)
- Ensure the file isn't marked as read-only