Documentation

Learn about Code Studio's features, technologies, and how to make the most of our platform.

Last updated: March 1, 2024

Overview

Code Studio is a powerful online code editor and execution platform that enables developers to write, test, and share code in multiple programming languages while on the go. Our platform combines modern technologies like Monaco Editor for code editing and Piston API for secure code execution.

Editor Features

Monaco Editor Integration

  • Advanced syntax highlighting for multiple languages
  • Customizable dark theme optimized for long coding sessions
  • Adjustable font size (12-24px) with ligature support
  • Code auto-completion and intelligent suggestions
  • Line numbers and minimap navigation

Editor Customization

  • Font size controls through intuitive slider
  • Code persistence with automatic saving
  • Language-specific default code templates
  • Customizable editor layout and appearance

Code Execution

Piston API Integration

We use the Piston API for secure and efficient code execution across multiple programming languages.

  • Support for JavaScript, Python, Java, and more
  • Secure sandboxed execution environment
  • Real-time compilation and execution
  • Detailed error reporting and output display

Language Support

Code Studio supports a wide range of programming languages with specialized features for each:

  • JavaScript/TypeScript with Node.js runtime
  • Python with latest version support
  • Java with JDK integration
  • And many more languages with their respective runtimes

Code Sharing

Share your code snippets easily with others:

  • Generate shareable links for your code
  • Public and private sharing options
  • Snippet management for registered users
  • Collaborative code viewing and execution

Data Management

Local Storage

  • Automatic code saving
  • Language-specific code persistence
  • Editor preferences storage
  • Theme and font settings retention

Convex Backend

  • Secure user data storage
  • Code execution history
  • Shared snippets management
  • Real-time data synchronization

Additional Features

  • User authentication via Clerk
  • Responsive design for all devices
  • Keyboard shortcuts for common actions
  • Integrated error handling and reporting

Getting Started

  1. Choose your language

    Select your preferred programming language from the dropdown menu.

  2. Write your code

    Use our powerful Monaco editor to write or paste your code.

  3. Execute

    Click the "Run Code" button to execute your code and see the output.

  4. Share (Optional)

    Use the share button to generate a link to your code snippet.