Code Editor & AI Assistant

The core of Gokino is its intelligent editing environment.

Professional Code Editor

We use the Monaco Editor (the engine behind VS Code) to provide a top-tier coding experience.

Features

  • Syntax Highlighting: Full color coding for C/C++ and Arduino-specific keywords.
  • Autocomplete (IntelliSense):
    • Type Serial. to see available methods like begin(), println().
    • Type digital to see digitalWrite(), digitalRead().
  • Error Squiggles: Syntax errors are underlined in red. Hover over them to see the error message.
  • Minimap: A visual overview of your code on the right edge.
  • Multi-Cursor: Hold Alt (Windows) or Option (Mac) and click to add multiple cursors.

Keyboard Shortcuts

  • Ctrl/Cmd + S: Save (Auto-save is also enabled).
  • Ctrl/Cmd + F: Find.
  • Ctrl/Cmd + H: Replace.
  • Ctrl/Cmd + /: Toggle comment.

AI Assistant

The Right Sidebar houses your AI pair programmer.

Chat Interface

Interact with the AI using natural language.

  • Ask Questions: "How do I use the map function?"
  • Context Aware: The AI can "see" your currently open file. You don't need to copy-paste your code; just say "Explain this code" or "Fix the error in line 10".

Code Generation

  • Prompt: "Write a sketch to blink an LED every 500ms using millis() instead of delay()."
  • Insert: Click the "Insert" button on a code block in the chat to add it to your editor at the cursor position.

Debugging

If your code fails to compile, the AI can analyze the error log.

  1. Analyze Error: Click the "Ask AI" button next to an error in the Output Panel.
  2. Fix: The AI will explain the error and provide a corrected code snippet.