Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>4D HelperNew to Visual Studio Code? Get it now.
4D Helper

4D Helper

Ganbin

| (0) | Free
Helper tools for 4D development - Open projects with different 4D versions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

4D Helper - VSCode Extension

A VSCode extension that simplifies 4D development by providing an easy way to launch 4D projects with different versions of 4D applications and various launch options.

Note: This extension was developed for my personal workflow, but I thought it might be useful to others working with 4D. Feel free to use it, and contributions are welcome!

Built with the help of Claude Code 🤖

Features

  • Automatic Project Detection - Recursively finds .4DProject files in your workspace
  • Smart Filtering - Automatically excludes projects inside Components, Components.src, or Components_src folders
  • Multiple 4D Versions - Configure and quickly switch between different 4D application versions
  • Launch Options - Choose how to open your project:
    • Interpreted or Compiled mode
    • Custom data file (.4DD)
    • Create new data
    • Dataless mode
    • Skip On Startup
    • Headless mode
  • Cross-Platform - Works on macOS and Windows

Installation

From VSIX (Manual)

  1. Download the .vsix file from the Releases page
  2. In VSCode, open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  3. Run Extensions: Install from VSIX...
  4. Select the downloaded file

From Source

git clone https://github.com/ganbin/vscode-4d-helper.git
cd vscode-4d-helper
npm install
npm run compile

Then press F5 in VSCode to run the extension in development mode.

Configuration

Before using the extension, configure your 4D applications in VSCode settings.

macOS

{
  "4d-helper.applications": [
    {
      "name": "4D v20 R8",
      "path": "/Applications/4D v20 R8/4D.app"
    },
    {
      "name": "4D v20.6",
      "path": "/Applications/4D v20.6/4D.app"
    }
  ]
}

Windows

{
  "4d-helper.applications": [
    {
      "name": "4D v20 R8",
      "path": "C:\\Program Files\\4D\\4D v20 R8\\4D.exe"
    },
    {
      "name": "4D v20.6",
      "path": "C:\\Program Files\\4D\\4D v20.6\\4D.exe"
    }
  ]
}

Usage

Opening a Project

  1. Open a folder containing a 4D project in VSCode

  2. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)

  3. Run the command: 4D: Open 4D Project

  4. If you have multiple 4D applications configured, select which version to use

  5. Choose your launch options (you can select multiple):

    Option Description
    Interpreted Run in interpreted mode (default)
    Compiled Run in compiled mode
    Select Data File Choose a specific .4DD data file
    Create New Data Create a new data file on launch
    Dataless Open without any data file
    Skip On Startup Skip the On Startup database method
    Headless Run without the 4D GUI
  6. The extension launches 4D with your project and selected options

Managing 4D Versions

Instead of manually editing the JSON configuration, you can use the built-in commands to manage your 4D versions:

Adding a 4D Version

  1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Run the command: 4D: Add Version
  3. Browse and select your 4D application (.app on macOS, .exe on Windows)
  4. Enter a display name for this version (defaults to the application name)
  5. Choose where to save the configuration:
    • User Settings - Available in all workspaces
    • Workspace Settings - Only available in the current workspace

Removing a 4D Version

  1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  2. Run the command: 4D: Remove Version
  3. Select the version you want to remove from the list
  4. Confirm the removal

Multiple Projects in Workspace

If your workspace contains multiple 4D projects, the extension will ask you to select one. Your choice is remembered for future launches (stored in workspace settings).

Requirements

  • VSCode 1.85.0 or higher
  • One or more 4D applications installed on your system

License

MIT License - see LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft