Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Vallenta Studio For Object PascalNew to Visual Studio Code? Get it now.
Vallenta Studio For Object Pascal

Vallenta Studio For Object Pascal

Vallenta

|
746 installs
| (2) | Free
A Visual Studio Code extension that provides comprehensive Delphi development support
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vallenta Studio

Latest release

Features · Roadmap · Changelog · Report an issue

A Visual Studio Code extension that provides comprehensive Delphi development support, enabling you to edit, build, and debug Delphi projects directly within VS Code.

Vallenta Designer is now available — the visual form designer for VCL .dfm files, published as source under the MIT license at github.com/Vallenta/Designer. It is a separate Delphi application, built with each Delphi version it is used with; the path to the built VallentaDesigner.exe is entered per version under Form Designer in the Vallenta Studio settings. Free during the beta — no Pro subscription required.

Features

The extension is available in two tiers. See the full feature matrix for a tier-by-tier comparison.

Free (with registered account)

  • Project Explorer - Manage multiple Delphi projects (.dproj) and packages (.dpk) in a dedicated sidebar with recent project support
  • Build System - Build, clean, and rebuild projects using MSBuild with configuration/platform selection and build toolbar. Compiler errors, warnings, and hints are parsed into the Problems panel
  • Syntax Highlighting - Full Object Pascal TextMate grammar including keywords, types, comments, strings, and compiler directives
  • Color Schemes - Pascal source in the colors of the Delphi IDE: Delphi Light or Delphi Dark following the VS Code theme, the editor colors read from the installed Delphi IDE, or a custom set; other languages keep the VS Code theme
  • Code Intelligence (LSP) - Go to Definition, hover information, code completion, and document symbols/outline powered by a built-in Language Server
  • Find Symbol - Workspace symbol picker (Ctrl+T or editor right-click "Find Symbol…") for classes, records, interfaces, methods, properties, and unit-level symbols
  • Find All References - Semantic, scope-aware reference search (Shift+F12) across the project, including matches inside .dfm/.fmx form files
  • Find All Implementations - Lists the implementations and overrides of a method or interface member (Ctrl+F12); Find All References (Base Declaration) (Ctrl+Shift+F12) lists the references to the declarations a member implements or overrides
  • Find Project, Find File, Find in Active Project - A search panel finds a recent project or a project or project group file of the workspace (Ctrl+F11), a file of the active project (Ctrl+Alt+F11) or a text in the files of the active project (Ctrl+Shift+Alt+F), the units reached through its search path included
  • XML Documentation - /// comments of a declaration show in hover, in the details of the completion list and in parameter hints, for the RTL, VCL and FMX as well as for project code
  • Class Completion - Ctrl+Shift+C writes the missing method implementations and the missing property fields and accessors of the class or record at the cursor; Apply Signature (Ctrl+Shift+Alt+C) applies the routine header at the cursor to its counterpart
  • Declare Refactorings - Declare Variable, Declare Inline Variable, Declare Field and Declare Method declare the identifier at the cursor; Toggle Inline Variable (Ctrl+Shift+Alt+V) moves a local variable between the var section and an inline declaration
  • Block Completion - Enter after a block opener such as begin inserts the matching end and indents the new line
  • Semantic Validation - Compiler-style diagnostics that detect undefined types, methods, and variables with configurable severity, plus hints for unused variables and parameters and for routine headers that differ from their declaration
  • var/out Arguments - An argument passed to a var or out parameter shows var or out before it, or takes a color of its own
  • Toggle Form / Source - Press F12 (or use the CodeLens at the top of the file) to swap between a .pas unit and its sibling .dfm/.fmx form. The Source Files view shows an inline [DFM]/[FMX] tag for units with a form
  • Semantic Highlighting - Resolver-driven coloring that distinguishes identifiers by meaning — types, classes, interfaces, methods, properties, fields, parameters, and enum members — plus same-identifier occurrence highlighting
  • Structural Highlighting - Block keywords (begin/end, if, for, case, try…) colored by nesting level; the whole construct highlights when your cursor is on one of its keywords, and control-flow keywords (exit, break, continue, raise) are emphasized
  • Preprocessor Support - Full {$IFDEF}, {$DEFINE}, {$INCLUDE} evaluation with inactive region visualization (grayed-out code)
  • Code Folding - Routines, types, sections, uses clauses, blocks, comments, {$IFDEF} branches and {$REGION} blocks fold; Fold All Regions folds the {$REGION} blocks, whose captions can also be shown as minimap labels
  • File Encoding - Detects ANSI-encoded Pascal files and offers one-click conversion to UTF-8 with BOM; Pascal files that are not UTF-8 open and save in the Windows ANSI code page
  • Session Persistence - Saves and restores open tabs when switching between projects
  • New Project and New File - Creates VCL, FMX and console applications, DLLs, packages and units without the Delphi IDE
  • Keyboard Mappings - An editor for the extension's shortcuts; Set to Delphi defaults applies the keys of the Delphi IDE
  • Form Designer (beta) - VCL .dfm forms open in the external Vallenta Designer, free during the beta

Pro (with paid subscription)

All Free features, plus:

  • Source-Level Debugging - Full source-level debugging with breakpoints, stepping, variable inspection, and call stacks. Press F5 to start — no configuration needed.
  • Vallenta Debugger (beta) - A debugger engine written for Delphi debugs Win32 and Win64 programs without the Microsoft C/C++ debugger, also inside runtime packages and DLLs built with debug information; the default engine of a new installation, set by Debugger engine in the Build & Debug group of the settings page
  • Watch & Hover Evaluation - Call methods on your objects, read properties (including inherited ones), drill into interface and class references, and see sets, enums and Booleans in Delphi form — right from the Watch panel and on hover; a [Properties] node lists an object's getter-backed properties
  • Delphi Expressions - Watch, hover, the Debug Console and breakpoint conditions read Delphi syntax, such as Counter.Value = 7 or MyUnit.Add(1, 2)
  • Memory View - Show in Memory View on a Variables or Watch row shows the memory of a value as hex and text, with a data inspector, pointer navigation, search and editing
  • Attach to Process - Debugs a Delphi program that is already running
  • Delphi Exception Handling - Debugger breaks on raised Delphi exceptions and unwinds the Delphi exception stack, showing the full call path back to the raise site merged with the native frames, and a Delphi Exception Filters view lets you skip chosen exception types by name or pattern
  • Natvis Type Visualization - Version-specific natvis files for displaying Delphi types (strings, arrays, variants, objects) in the debugger
  • Go to Declaration / Implementation - Jump between interface declarations and implementation bodies (Shift+Ctrl+Up / Shift+Ctrl+Down)
  • Unused Units and Quick Fixes - Hints for units in a uses clause that the file does not need, and Ctrl+. quick fixes that add a missing unit, declare an unknown identifier or remove an unused unit
  • Rename Symbol - Rename a symbol with F2 and every use updates across the project in one step — declaration, implementation, and all references, including inside .dfm/.fmx forms. Unsafe or conflicting renames are refused with a clear explanation
  • Highlight Color Editor - Recolor semantic and structural highlighting with visual color-picker dialogs and a live preview, instead of hand-editing JSON
  • Folded Region Captions - A folded {$REGION} block shows its caption framed or as a badge, with the directive syntax dimmed
  • Regions in the Outline - {$REGION} blocks appear as groups in the Outline view, breadcrumbs, Go to Symbol and sticky scroll
  • Breakpoint Persistence - Breakpoints are saved and restored per project
  • Project Options Editor - Edit project configuration directly within VS Code, including per-configuration build settings, compiler hints and warnings, unit aliases, per-configuration/platform debugger environment variables, and a visual editor for referenced option sets (.optset)
  • Inlay Hints - Parameter names before the arguments of a call and the inferred type of an inline variable, each switched on in the Inlay hints dialog of the Code highlighting tile on the settings page
  • EurekaLog Post-processing - EurekaLog's ecc32 processes the executable after each successful build of a project with EurekaLog enabled
  • Copy Variable as Tree - Right-click in the debugger Variables or Watch view to copy the expanded variable hierarchy to the clipboard (up to 2 levels deep, 2000 nodes)
  • Group Builds - Build all projects in a project group at once
  • Linux Remote Debugging - Build Linux64 on Windows, deploy to a Linux machine and debug it there with breakpoints, stepping and watch evaluation. Machines are paired once and referenced by name; per build configuration you choose the target, the working directory and the files deployed alongside the program

Requirements

  • Delphi - A valid Delphi installation (Delphi 2007, or Delphi 10.x, 11.x, 12.x or 13.x)
  • C/C++ Extension - Optional, required only for the Microsoft C++ debugger (ms-vscode.cpptools), see Debugger Engine. It is installed separately from the Vallenta Studio extension.

Editors Based on VS Code

Vallenta Studio runs in editors built on VS Code, such as Cursor and Antigravity IDE. The account sign-in returns to the editor that started it. Win32 and Win64 programs are debugged there with the Vallenta debugger (see Debugger Engine). The Microsoft C++ debugger of the C/C++ extension runs only in Microsoft products and requires Visual Studio Code.

Installation

  1. Install the extension from the VS Code Marketplace
  2. Open a folder in VS Code to use as your workspace (see Workspace Setup below)
  3. The extension auto-detects your Delphi installation and configures paths automatically

Getting Started

Workspace Setup

The extension requires an open workspace folder in VS Code. It stores project references and settings in a .vallenta folder inside your workspace root.

The workspace folder does not have to be the actual Delphi project folder. The recommended practice is to open a parent directory that covers multiple Delphi project folders. For example:

C:\MyWork\                    <-- open this folder as your VS Code workspace
+-- .vallenta\                <-- extension stores project list and settings here
+-- ProjectA\
¦   +-- ProjectA.dproj
¦   +-- ...
+-- ProjectB\
¦   +-- ProjectB.dproj
¦   +-- ...
+-- SharedLibrary\
    +-- ...

This way you can manage multiple Delphi projects within a single workspace.

Delphi Detection

On first startup, it scans the Windows Registry for installed Delphi versions and selects the latest one. To switch to a different Delphi version, open the settings dialog (top right on the Project Explorer) and select the Delphi version from the dropdown list.

Information regarding Delphi 2007

Delphi 2007 is detected beside the modern releases, and its projects build, index, run and debug from the extension. The Project Options editor opens a Delphi 2007 project read-only, because the extension does not write the 2007 project file format; project options are changed in the Delphi 2007 IDE. Two features are not available for such a project: the New Project wizard, for the same reason, and the Form Designer, which needs Delphi 11.3 or later.

Delphi 2005, 2006, 2009, 2010 and XE to XE8 are not detected. Support for one of them is added on request.

Adding Projects

  1. Open the Vallenta Studio view in the Activity Bar (sidebar)
  2. Click Add Project to browse and select a .dproj or .dpk file
  3. Or use Add Project Group to load all projects from a .groupproj file

Building

  1. Set the active project by clicking on it in the Project Explorer
  2. Select the build configuration (Debug/Release) and target platform (Win32/Win64) in the Build toolbar
  3. Click the Build button in the Build toolbar — one click, no VS Code tasks.json configuration required
  4. Build output streams in real-time to the Build Output panel; errors and warnings appear in the Problems panel

Debugging (Pro)

  1. Build the active project with Debug configuration to include debug information
  2. Press F5 (or click Debug in the Build toolbar) to start debugging

That's it — no launch.json or tasks.json needed. The extension automatically:

  • Generates the debug symbols required by the debugger
  • Generates version-specific natvis visualizers for Delphi types
  • Launches the debugger with the correct paths and settings

Use Ctrl+F5 to run without debugging.

Debugging capabilities:

  • Source-level breakpoints, with conditions, hit counts and logpoints in Delphi syntax
  • Step over / into / out
  • Local variable and parameter inspection
  • Call stacks with function names and line numbers
  • Watch, hover and Debug Console expressions in Delphi syntax, including method calls and property reads
  • Natvis type visualization for Delphi strings, arrays, variants, and objects
  • Copy expanded variable trees to the clipboard via right-click in Variables / Watch
  • Memory view of a Variables or Watch row, with a data inspector, pointer navigation, search and editing
  • Attach to a running process, from the arrow beside the Debug button or with Attach to Process
  • Delphi exception handling — the debugger automatically breaks on raised Delphi exceptions (identified by the 0x0EEDFADE exception code), reads the exception class name and message, and unwinds the Delphi exception stack so the call stack shows the full path back to the raise site merged with the native C++ frames. Enabled by default via the All Delphi Exceptions breakpoint filter in the Breakpoints view; toggle All Exceptions there to also break on non-Delphi (SEH) exceptions

Debugger Engine

Debugger engine in the Build & Debug group of the settings page selects the debugger of Win32 and Win64 programs. A new installation uses the Vallenta debugger (beta). This engine is written for Delphi programs on the Windows Debug API and reads the converted debug information without a PDB file. Breakpoints and locals also work inside runtime packages and DLLs built with debug information, and an object shows its fields grouped by declaring class. Object summary and Call stack parameters in the same group select what the Variables view and the call stack show. The option is marked beta until the engine is complete.

The Microsoft C++ debugger reads a PDB file converted from the Delphi debug information. It needs the C/C++ extension (ms-vscode.cpptools), installed separately, and runs only in Visual Studio Code. When this engine is selected or started without the C/C++ extension, a message offers to install it; in another editor, the message states that this engine runs only in Visual Studio Code. An installation updated from version 1.2.15 keeps this engine.

Linux Development (Pro)

A project with the Linux64 platform is compiled on Windows by Delphi's Linux compiler, then deployed to and debugged on a Linux machine. Three things are set up once; after that F5 behaves as it does on Windows.

1. Run the agent on the Linux machine. Remote debugging is driven by VallentaAgent, one static binary that needs no root and installs nothing outside the user's home directory:

curl -fsSL https://github.com/Vallenta/VallentaAgent/releases/latest/download/install.sh | sh

Vallenta Studio: Copy Linux Agent Install Command puts that line on the clipboard. The agent prints a pairing token when it starts. lldb-server is not bundled — the distribution supplies it, and the agent names the package to install for the distribution it detects.

2. Register the machine. Vallenta Studio: Add Linux Target takes the host, port and printed token and pairs once. Registered machines are listed in the Linux Targets panel with what each one reported: agent version, lldb-server version, distribution and glibc. Targets belong to the workspace and are referenced by name, so no host names or ports are written into project files.

3. Provide a sysroot. A Linux64 link needs the target distribution's libraries. The Linux Distributions panel downloads and prepares them per distribution, and the target's distribution decides which one a build links against; a target without one stops the build before the compiler starts. The build links against that sysroot alone — a Linux SDK registered in the IDE takes no part in it. A library the project links against that the catalogue does not carry is named under Additional packages on the distribution, as its runtime package and its -dev package (libxml2 libxml2-dev on Ubuntu 24.04, libxml2-16 libxml2-dev on 26.04), and is downloaded with the next Prepare. A name the release does not carry is reported with the names it does have.

The debug engine is fetched on demand: the extension matches lldb-dap to the lldb-server version the target reports, so both ends speak the same protocol.

The program starts with the environment of the agent process, so a variable exported in the shell the agent was started from reaches it; env in the launch configuration adds to that and overrides variables of the same name.

Each session writes its startup to the Vallenta Debug output channel, which opens with it: debug metadata, source locations, the agent connection and session, deploy and launch, and the transfer check - each with the time it took, and a total. vallenta.studio.debug.trace adds the DAP and agent traffic to the same channel.

Deployment Options

Open Deployment Options from a project's context menu in the Projects view. The editor is scoped by build configuration: pick a configuration on the left, and the settings on the right apply to it. All configurations holds the values every configuration inherits, and a configuration that sets nothing of its own shows the inherited value greyed out.

Per configuration you set:

  • Linux target — the machine to deploy to. It also supplies the sysroot the Linux64 build links against, so changing it changes what the project compiles against. The indicator beside it shows whether the target answered; the check runs when you open the editor, switch configuration or pick a target.
  • Working directory — where the program is placed and run, relative to the agent's scratch root. Left empty, the program runs in the scratch root itself.
  • Deployed files — files copied to the target before the program starts, one entry per file, folder or pattern such as data/**, inside the project directory or outside it. + Add Path adds an entry by its typed path: relative to the project directory, absolute, or with $(NAME) macros such as $(BDSCOMMONDIR), expanded for the build configuration. Add Files… and Add Folder… pick entries in a dialog instead. A picked path is stored through the macro of the Delphi folder or IDE environment variable it lies in, otherwise relative to the project directory, and as an absolute path only on another drive or a network share. A folder or pattern keeps its structure relative to the project directory, or relative to its own folder when that lies outside the project directory.

Each entry shows where its files land, or why it cannot be deployed. Selecting it opens its editor: the local path with File… and Folder… to pick a replacement, the file the path resolves to (on All configurations, one line per build configuration), updated while the path is typed, a subfolder, a different remote name, and whether an existing file is overwritten, the file is made executable and the entry is enabled.

The Live Target View at the bottom shows the resulting layout on the target, including the program itself, which the debugger uploads without an entry. A file that cannot be deployed — a path matching nothing, or a macro without a value — is reported there and stops the session before the target is contacted.

Deploy Files in the Debug button's menu sends the same files without starting the program: the configuration's deployment entries plus the built executable. The Debug menu follows the selected platform — on Linux64 it offers this instead of Attach to Process…, and Convert Debug Symbols becomes Regenerate Debug Metadata, which rebuilds the type information the Linux debugger reads from the executable. A debug session rebuilds that information by itself whenever the program is newer, so this is for repeating a generation that failed.

Projects that already carry Delphi's own deployment entries can take them over with Import from Delphi. The import is one-time and additive, covers the Linux64 entries only, and reports anything it skipped.

Debugging on Linux

F5 builds the project if needed, deploys it, and starts the session. Breakpoints, stepping, call stacks and variable inspection work as they do on Windows, including Delphi strings, dynamic arrays, sets, records, classes and interfaces. Delphi exceptions break at the raise site with the class name and message. Program output goes to an integrated terminal, so a program that reads from standard input can be driven from it.

Source files stay on Windows — nothing but the program and the files you list is copied to the target.

Code Intelligence

The built-in LSP server starts automatically when a project is activated and provides:

  • Go to Definition (Ctrl+Click) - Navigate to symbol declarations
  • Go to Declaration / Implementation (Shift+Ctrl+Up / Shift+Ctrl+Down) - Jump between interface and implementation (Pro)
  • Find Symbol (Ctrl+T) - Workspace-wide symbol search
  • Find All References (Shift+F12) - Semantic reference search across the project, including matches inside .dfm/.fmx form files
  • Find All Implementations (Ctrl+F12) - Implementations and overrides of a method or interface member
  • Rename Symbol (F2) - Rename a symbol and every reference to it across the project, including type members (Pro)
  • Code Actions (Ctrl+.) - Quick fixes such as adding a missing unit to the uses clause or declaring an unknown identifier (Pro)
  • Class Completion (Ctrl+Shift+C) - Missing method implementations and property accessors of the class at the cursor
  • Signature Help - Parameter hints while the arguments of a call are typed, narrowed to the overloads matching them
  • Inlay Hints - Parameter names and inferred types of inline variables (Pro), and var/out argument marks
  • Overload Resolution - Hover and Ctrl+Click on an overloaded routine narrow to the specific overload by matching argument types
  • Hover - View type information and symbol details, with the /// documentation of the declaration
  • Code Completion - Type-aware member suggestions after the dot operator, and the identifiers, keywords and intrinsic routines valid at the cursor
  • Document Symbols - Outline view and breadcrumb navigation; {$REGION} blocks as groups when enabled (Pro)
  • Code Folding - Folding ranges for routines, types, sections, uses clauses, blocks, statements, comments and {$IFDEF} branches, independent of the active defines
  • Semantic Highlighting - Context-aware syntax coloring
  • Diagnostics - Errors, warnings, and hints for undefined types, methods, and variables, unused variables and mismatched routine headers; unused units (Pro)
  • Inactive Regions - Preprocessor-excluded code shown with reduced opacity

Extension Settings

The settings page (Vallenta Studio: Open Vallenta Studio Settings) holds most settings, grouped by feature. The tables below list a selection; the VS Code Settings editor lists every setting of the extension under Vallenta Studio.

Vallenta Studio Environment

Setting Type Default Description
vallenta.studio.selectedVersion string "" Selected Delphi version identifier (e.g., '23.0'), or custom for Custom Delphi Settings (Pro); in the workspace settings it applies to that workspace only
vallenta.studio.customInstallationPath string "" Custom Delphi Settings: path to the Delphi installation directory
vallenta.studio.customMsbuildPath string "" Custom Delphi Settings: path to MSBuild.exe
vallenta.studio.customRsvarsPath string "" Custom Delphi Settings: path to rsvars.bat
vallenta.studio.customLibraryPath array [] Custom Delphi Settings: Delphi library search paths

The paths of a detected installation are read from the Windows registry for the selected version.

Build

Setting Type Default Description
vallenta.studio.build.saveBeforeBuild boolean true Save all modified files before a build starts
vallenta.studio.build.beforeRun string whenChanged When Run and Debug build the project before starting it: whenChanged or always
vallenta.studio.build.jumpToFirstError boolean false After a failed build, open the first error at its line
vallenta.studio.build.retryOnInternalError boolean false Rebuild once when the compiler stops with F2084 Internal Error
vallenta.studio.build.convertSymbolsAfterBuild boolean false Convert the debug symbols after every successful Win32 or Win64 build (Pro)
vallenta.studio.build.eurekaLog.enabled boolean false Run EurekaLog's ecc32 after each successful build of a project with EurekaLog enabled (Pro)

Debugging

Setting Type Default Description
vallenta.studio.debug.engine cppvsdbg | native native Debugger for Win32 and Win64 programs: native is the Vallenta debugger (beta), cppvsdbg the Microsoft C++ debugger of the C/C++ extension
vallenta.studio.debug.delphiExpressionEvaluator boolean true Evaluate Watch, hover and Debug Console expressions and breakpoint conditions in Delphi syntax
vallenta.studio.debug.enableNatvis boolean true Generate natvis visualizer for Delphi types during debugging
vallenta.studio.debug.trace boolean false Write the traffic and steps of the Vallenta and Linux debuggers to the Vallenta Debug output channel

Linux (Pro)

Targets and distributions are managed by their panels rather than edited by hand.

Setting Type Scope Description
vallenta.studio.linux.targets array workspace Paired Linux machines, referenced by name from a project
vallenta.studio.linux.distros array machine Sysroots a Linux64 build can link against
vallenta.studio.linux.lldbDapPath string — Use a specific lldb-dap instead of the one matched to the target

Editor

Setting Type Default Description
vallenta.studio.encodingCheck boolean true Warn about ANSI-encoded Pascal files and offer conversion
vallenta.studio.useWindowsAnsiCodePage boolean true Open and save Pascal files that are not UTF-8 in the Windows ANSI code page
vallenta.studio.project.sessionScope project | group | off project Scope that open tabs and breakpoints are remembered under when switching projects. group shares one set across all projects of a project group
vallenta.studio.project.recentProjectsLimit number 25 Number of recent projects listed by Find Project
vallenta.studio.inactiveRegions.enabled boolean true Show inactive preprocessor regions with reduced opacity
vallenta.studio.documentation.enabled boolean true Show /// documentation comments in hover, completion details and parameter hints
vallenta.studio.editor.blockCompletion boolean true Insert the closing end when Enter is pressed inside a block without its end
vallenta.studio.editor.inlayHints.parameterNames off | literals | all off Show the parameter name before the arguments of a call (Pro)
vallenta.studio.editor.inlayHints.inlineVariableTypes boolean false Show the inferred type of an inline variable declared without a type (Pro)
vallenta.studio.editor.folding.regionCaptionStyle framed | chip | dimmed | off framed Style of the first line of a folded {$REGION} block (Pro)
vallenta.studio.editor.outline.showRegions boolean false Show {$REGION} blocks as groups in the outline (Pro); takes effect at the next edit of an open file

Form Designer

Setting Type Default Description
vallenta.studio.formDesigner.enabled boolean false Open .dfm files in the Vallenta form designer instead of the text editor
vallenta.studio.formDesigner.executablePaths object {} Path of VallentaDesigner.exe per Delphi version, entered under Form Designer on the settings page

LSP Server

Setting Type Default Description
vallenta.studio.lsp.autostart string "exclusive" Auto-start mode: disabled, exclusive, or enabled
vallenta.studio.lsp.trace.server string "off" LSP communication trace level: off, messages, verbose
vallenta.studio.lsp.logLevel string "info" Server log verbosity: trace, debug, info, warning, error
vallenta.studio.lsp.idleTimeout number 10 Minutes before stopping idle background LSP servers (0 = disabled)
vallenta.studio.lsp.semanticValidation.enabled boolean true Detect undefined types, methods, and variables
vallenta.studio.lsp.semanticValidation.severity string "hint" Severity for semantic diagnostics: error, warning, hint, information
vallenta.studio.lsp.indexing.workerThreads number 0 Background indexing threads (0 = auto)
vallenta.studio.lsp.indexing.batchSize number 8 Files per batch per worker thread

MCP Server

Setting Type Default Description
vallenta.studio.mcp.enabled boolean true Start the MCP server for AI agents (Pro)
vallenta.studio.mcp.port number 0 MCP server port on 127.0.0.1 (0 = automatic; the assigned port is kept per workspace)
vallenta.studio.mcp.debugWaitSeconds number 30 Seconds an MCP debugging tool waits for the program to stop before it returns with the session still running

MCP Server for AI Agents (Pro)

Vallenta Studio can host a local MCP server so AI agents work with your Delphi code through the same engine the IDE uses — instead of grepping raw text and guessing at Delphi semantics (uses-clause visibility, case insensitivity, {$IFDEF} regions).

Tools (42):

  • Code intelligence: find_symbol, find_references, find_implementations, go_to (definition/implementation/declaration), get_symbol_info, get_completions, get_document_symbols, get_diagnostics, get_inactive_regions.
  • Project and build: get_projects, get_project_info, add_project, set_active_project, set_build_config, reindex_project, build, cancel_build, get_build_output.
  • Debugging: get_debug_state, list_processes, start_debugging, attach_debugger, end_debug_session, add_breakpoints, remove_breakpoints, get_breakpoints, set_exception_rules, run_until_stop, step, pause, wait_for_stop, run_to_line, get_stop_snapshot, get_stack, get_threads, get_variables, expand_value, evaluate, get_exception, get_debug_output, get_modules.
  • Connection check: ping.

add_project adds a project or project group to the Projects sidebar, so an agent works with a project that is not yet listed, such as a test project outside the workspace.

The server also advertises usage instructions over the protocol, so a connecting agent is told which tool answers which question — and that Pascal is case-insensitive, that visibility follows the uses clause, and that an inactive {$IFDEF} branch is not dead text — rather than falling back on text search.

On by default for a Pro subscription; clear vallenta.studio.mcp.enabled to stop hosting it. The server listens on 127.0.0.1 only and requires a bearer token; nothing is reachable from the network and no credential is written into your workspace.

GitHub Copilot (agent mode): on VS Code 1.102 or newer the server is discovered automatically — the Vallenta Studio tools appear in agent mode once the server is running. Older VS Code versions can still use external agents via the connect command below.

Claude Code: the MCP server for AI agents tile on the settings page registers it in one click — Register with Claude Code adds the server for the current workspace, and Remove registration takes it out again. Re-run it after changing the port. Registration drives your own claude CLI when it is on PATH, and otherwise the copy bundled with the Claude Code VS Code extension, so having either one installed is enough. If you have neither, Copy connect command gives you the claude mcp add … line to run where the CLI is. Either way the access token lands in Claude's user-private configuration, outside your repository. MCP: Show Server Status shows the current URL.

Commands

Command Description
Vallenta Studio: Auto-Detect Installation Scan registry for Delphi installations
Vallenta Studio: Open Vallenta Studio Settings Open the extension settings UI
Vallenta Studio: Add Project or Group File... Add a .dproj, .dpr, .dpk or .groupproj file to the project list
Vallenta Studio: Add Projects from Folder... Add all projects from a folder
Vallenta Studio: Add Project Group... Add all projects from a .groupproj file
Vallenta Studio: Remove All Projects... Remove every project and project group from the project list, after a confirmation
Vallenta Studio: Find Project... Find a recent project or a project file of the workspace by name, and add it beside the listed projects or in place of them
Vallenta Studio: Find File in Active Project... Find a file of the active project by name: a file declared in its main source or a unit of its search path
Vallenta Studio: Find in Active Project... Find a text in the files of the active project: its units with their forms and include files, and the units of its search path
Vallenta Studio: New Project Group... Create an empty .groupproj and list it, with a choice of listed projects to move into it
Vallenta Studio: New Delphi Project... Create a new application, DLL or package project
Vallenta Studio: New Delphi-File... Create a new Pascal unit file
Vallenta Studio: Rename Unit... Rename the open unit, its file and its references, the project file included
Vallenta Studio: Project Options... Open project configuration (Pro)
Vallenta Studio: Deployment Options Open the Linux deployment editor for the active project (Pro)
Vallenta Studio: Add Linux Target Pair a Linux machine running VallentaAgent (Pro)
Vallenta Studio: Linux Targets Manage the paired Linux machines (Pro)
Vallenta Studio: Linux Distributions Manage the sysroots a Linux64 build links against (Pro)
Vallenta Studio: Copy Linux Agent Install Command Copy the agent install command to the clipboard (Pro)
Vallenta Studio: Download Linux Debug Engine Fetch the lldb-dap matching a target's lldb-server (Pro)
Vallenta Studio: Build Build the active project
Vallenta Studio: Clean Clean the active project
Vallenta Studio: Rebuild Rebuild the active project
Vallenta Studio: Build All Projects in Group Build all projects in a group (Pro)
Vallenta Studio: Cancel Build Cancel the active build
Vallenta Studio: Run Without Debugging Run the application without debugger
Vallenta Studio: Attach to Process Debug a running Delphi program (Pro)
Vallenta Studio: Convert Debug Symbols of Active Project Convert the debug symbols of the active project's executable (Pro)
Vallenta Studio: Deploy Files to Linux Target Send the deployment entries and the executable to the Linux target without starting the program (Pro)
Vallenta Studio: Open Memory View... Open the memory view of the stopped program at an entered expression or address (Pro, debug context only)
Vallenta Studio: Start LSP Server Start the language server for the active project
Vallenta Studio: Stop LSP Server Stop the language server
Vallenta Studio: Restart LSP Server Restart the language server
Vallenta Studio: Go to Declaration Navigate to interface declaration (Pro)
Vallenta Studio: Go to Implementation Navigate to implementation body (Pro)
Vallenta Studio: Go to Interface Section Move the cursor to the unit's interface keyword
Vallenta Studio: Go to Implementation Section Move the cursor to the unit's implementation keyword
Vallenta Studio: Find Symbol... Open workspace-wide symbol picker
Vallenta Studio: Find All References List the references to the symbol at the cursor
Vallenta Studio: Find All References (Base Declaration) List the references to the declarations the member at the cursor implements or overrides
Vallenta Studio: Find All Implementations List the implementations and overrides of the member at the cursor
Vallenta Studio: Complete Class at Cursor Write the missing implementations and property accessors of the class at the cursor
Vallenta Studio: Apply Signature at Cursor Apply the routine header at the cursor to its counterpart
Vallenta Studio: Declare Variable Declare the identifier at the cursor as a local variable
Vallenta Studio: Declare Inline Variable Declare the identifier at the cursor as an inline variable before its first use
Vallenta Studio: Declare Field Declare the identifier at the cursor as a field of its class
Vallenta Studio: Declare Method Declare the routine at the cursor in its class
Vallenta Studio: Toggle Inline Variable Move the local variable at the cursor between the var section and an inline declaration
Vallenta Studio: Insert GUID Insert a new interface GUID at the cursor
Vallenta Studio: Toggle Form / Source Swap between .pas and matching .dfm/.fmx form file
Vallenta Studio: Open in Form Designer Open the form of a .dfm or .pas file in the Vallenta form designer
Vallenta Studio: Open DFM as Text File Open a .dfm file in the text editor
Vallenta Studio: Open File in Delphi IDE Open the current file in the Delphi IDE
Vallenta Studio: Copy Variable as Tree Copy expanded debugger variable to clipboard (Pro, debug context only)
Vallenta Studio: Convert to UTF-8 with BOM Convert ANSI file to UTF-8 BOM encoding
Vallenta Studio: MCP: Show Server Status Show the MCP server state and URL
Vallenta Studio: MCP: Copy Claude Code Connect Command Copy the claude mcp add line including the access token
Vallenta Studio: MCP: Register With Claude Code Register the server with the Claude Code CLI for this workspace (Pro)
Vallenta Studio: MCP: Remove Claude Code Registration Remove the Claude Code registration

Keyboard Shortcuts

Shortcut Action Context
F5 Start debugging Active Delphi project (Pro)
Ctrl+F5 Run without debugging Active Delphi project
F12 Toggle Form / Source Pascal / DFM / FMX editor
Alt+F12 Open DFM as Text File Pascal / DFM editor
Ctrl+Click Go to Definition Pascal editor
Ctrl+T Find Symbol Workspace
Ctrl+F11 Find Project Workspace
Ctrl+Alt+F11 Find File in Active Project Workspace
Ctrl+Shift+Alt+F Find in Active Project Workspace
Shift+F12 Find All References Pascal editor
Ctrl+Shift+F12 Find All References (Base Declaration) Pascal editor
Ctrl+F12 Find All Implementations Pascal editor
F2 Rename Symbol Pascal editor (Pro)
Shift+Ctrl+Up Go to Declaration Pascal editor (Pro)
Shift+Ctrl+Down Go to Implementation Pascal editor (Pro)
Ctrl+Shift+C Complete Class at Cursor Pascal editor
Ctrl+Shift+Alt+C Apply Signature at Cursor Pascal editor
Ctrl+Shift+Alt+V Toggle Inline Variable Pascal editor
Ctrl+Shift+G Insert GUID Pascal editor
Ctrl+Shift+B Build Standard VS Code build

Supported File Types

Extension Description
.pas Pascal unit
.dpr Delphi project source
.dpk Delphi package source
.inc Include file
.dproj Delphi project file (XML)
.groupproj Delphi project group file (XML)
.dfm Delphi form file (text format)
.fmx FireMonkey form file (text format)

Known Limitations

  • Form Designer: VCL .dfm forms open in the external Vallenta Designer, in a window of its own. .fmx forms open as text
  • Windows only — the extension requires a local Delphi installation on Windows. Linux64 projects are deployed to and debugged on a Linux machine running VallentaAgent; other target platforms can be cross-compiled, but deployment to them is not handled by the extension
  • Code formatting is not supported yet; a formatter is on the roadmap

Feedback and Issues

Found a bug or have a feature request? Please open an issue on this repository.

Trademark Notice

Delphi is a registered trademark of Embarcadero Technologies, Inc. Vallenta Studio is an independent product and is not affiliated with, authorized, or endorsed by Embarcadero Technologies.

License

See LICENSE for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft