← Back to Documentation Monaco Editor Guide

💻 Monaco Editor Guide PRO FEATURE

Experience VS Code directly in WordPress with Monaco Editor

🎯 What is Monaco Editor?

Monaco Editor is the same code editor that powers Visual Studio Code. With Base47 Pro, you get this professional editing experience directly in WordPress, making template editing faster and more enjoyable.

✨ Key Features

Professional Code Editing

  • Syntax highlighting
  • IntelliSense
  • Error detection
  • Code formatting
  • Bracket matching

Advanced Editing

  • Multiple cursors
  • Code folding
  • Minimap
  • Find & replace
  • Go to definition

VS Code Experience

  • Familiar interface
  • Keyboard shortcuts
  • Themes
  • Command palette
  • Emmet support

🚀 Getting Started

Activating Monaco Editor

  1. Upgrade to Pro - Purchase Base47 Pro license
  2. Enter license key - Go to Base47 > License
  3. Enable Monaco - Go to Base47 > Settings
  4. Select Monaco Editor - Choose as your preferred editor
  5. Start editing - Open Live Editor to use Monaco

First Time Setup

When you first open Monaco Editor:

  1. Choose theme - Light or dark theme
  2. Set preferences - Font size, tab size, etc.
  3. Learn shortcuts - Familiarize with key commands
  4. Start coding - Begin editing your templates

⌨️ Keyboard Shortcuts

Essential Shortcuts

Shortcut Action
Ctrl+S Save file
Ctrl+Z Undo
Ctrl+Y Redo
Ctrl+F Find
Ctrl+H Find and replace
Ctrl+G Go to line
Ctrl+/ Toggle comment

Advanced Shortcuts

Shortcut Action
Ctrl+Space Trigger IntelliSense
F12 Go to definition
Shift+F12 Find all references
Alt+Click Multiple cursors
Ctrl+D Select next occurrence
Shift+Alt+F Format entire document

🎨 IntelliSense Features

HTML IntelliSense

  • Tag completion - Auto-complete HTML tags
  • Attribute suggestions - Get attribute recommendations
  • Value completion - Complete attribute values
  • Snippet expansion - Use built-in HTML snippets

Example:

<div class="container">
    <h1><!-- IntelliSense suggests closing tag -->
    <p class="<!-- IntelliSense suggests CSS classes -->

CSS IntelliSense

  • Property completion - Auto-complete CSS properties
  • Value suggestions - Get valid property values
  • Color picker - Visual color selection
  • Unit completion - Auto-complete units (px, em, %, etc.)

Example:

.hero-section {
    background-color: /* Color picker appears */
    font-size: /* Unit suggestions appear */
    display: /* Value options appear */
}

JavaScript IntelliSense

  • Variable completion - Auto-complete variables
  • Function signatures - See function parameters
  • Object properties - Complete object properties
  • API documentation - Inline documentation

Example:

document.addEventListener('DOMContentLoaded', function() {
    const element = document.querySelector('.hero');
    element.style. /* Property suggestions appear */
});

🔍 Error Detection

Real-time Validation

Monaco Editor detects errors as you type:

  • Syntax errors - Red squiggly underlines
  • Warning indicators - Yellow squiggly underlines
  • Error panel - Detailed error descriptions
  • Quick fixes - Suggested solutions

Common Error Types

HTML Errors

  • Unclosed tags
  • Invalid attributes
  • Malformed structure

CSS Errors

  • Invalid property names
  • Incorrect values
  • Missing semicolons

JavaScript Errors

  • Syntax errors
  • Undefined variables
  • Type mismatches

📁 File Management

Multi-file Editing

  • File tabs - Switch between multiple files
  • Split view - View multiple files side by side
  • File explorer - Navigate template structure
  • Quick open - Ctrl+P to quickly open files

File Operations

  • New file - Create new template files
  • Rename file - Rename existing files
  • Delete file - Remove unwanted files
  • Duplicate file - Copy files quickly

⚡ Emmet Support

HTML Abbreviations

Write HTML faster with Emmet:

div.container>h1.title+p.description

Expands to:

<div class="container">
    <h1 class="title"></h1>
    <p class="description"></p>
</div>

CSS Abbreviations

Speed up CSS writing:

m10+p20+bgc#fff

Expands to:

margin: 10px;
padding: 20px;
background-color: #fff;

Common Emmet Shortcuts

Abbreviation Result
! HTML5 boilerplate
div.class <div class="class"></div>
div#id <div id="id"></div>
ul>li*3 <ul><li></li><li></li><li></li></ul>
p{text} <p>text</p>

🔧 Advanced Features

Code Folding

Collapse code sections for better organization:

  • Fold all - Collapse all sections
  • Unfold all - Expand all sections
  • Fold level - Collapse to specific level
  • Toggle fold - Expand/collapse current section

Multiple Cursors

Edit multiple locations simultaneously:

  • Alt+Click - Add cursor at click position
  • Ctrl+Alt+Down - Add cursor below
  • Ctrl+D - Select next occurrence
  • Ctrl+Shift+L - Select all occurrences

Column Selection

Select rectangular blocks of text:

  • Shift+Alt+Drag - Column selection
  • Shift+Alt+I - Insert cursors at line ends
  • Shift+Alt+Right - Expand selection

🎨 Customization

Editor Themes

Choose from multiple themes:

  • Light theme - Clean, bright interface
  • Dark theme - Easy on the eyes
  • High contrast - Better accessibility
  • Custom themes - Create your own

Editor Settings

Customize your editing experience:

{
    "fontSize": 14,
    "tabSize": 2,
    "insertSpaces": true,
    "wordWrap": "on",
    "minimap": {
        "enabled": true
    },
    "lineNumbers": "on"
}

🎯 Productivity Tips

Code Snippets

Use built-in snippets for faster coding:

HTML Snippets

  • html5 - HTML5 boilerplate
  • link - CSS link tag
  • script - JavaScript script tag
  • meta - Meta tag

CSS Snippets

  • @media - Media query
  • @keyframes - Animation keyframes
  • flex - Flexbox container
  • grid - CSS Grid container

Quick Actions

  • Ctrl+. - Quick fix suggestions
  • F2 - Rename symbol
  • Ctrl+Shift+P - Command palette
  • Ctrl+Shift+O - Go to symbol

🎉 Benefits of Monaco Editor

For Beginners

  • Error detection catches mistakes early
  • Auto-completion helps learn as you type
  • Syntax highlighting shows code structure
  • IntelliSense provides guidance

For Professionals

  • Familiar VS Code interface
  • Advanced editing tools
  • Productivity boost with shortcuts
  • Better, cleaner code quality

For Agencies

  • Consistent experience across projects
  • Familiar tools for all developers
  • Professional output quality
  • Client confidence in professional tools

📚 Next Steps

Master the Basics

  1. Learn shortcuts - Start with essential shortcuts
  2. Use IntelliSense - Let it guide your coding
  3. Try Emmet - Speed up HTML/CSS writing
  4. Explore themes - Find your preferred look

Advanced Usage

  1. Multiple cursors - Edit multiple lines at once
  2. Code folding - Organize large files
  3. Custom snippets - Create reusable code blocks
  4. Advanced search - Use regex for complex searches

Ready to Upgrade?

Monaco Editor is available exclusively with Base47 HTML Editor Pro. Upgrade today and experience professional code editing directly in WordPress!

Upgrade to Pro →

📚 Related Documentation

💻 Enjoy the professional coding experience with Monaco Editor!