4D Blog

Home Product VS Code: Go To Definition & Signature Help

VS Code: Go To Definition & Signature Help

October 19, 2022

Product

4D v19 R6 brought the support of external source code editors (e.g., Visual Studio Code), allowing them to handle 4D code and provide them with standard functionalities such as syntax highlighting using the Visual Studio Code extension.

4Dv19 R7 brings two new capabilities: Go To Definition and Signature Help.


And best of all — you don’t have to do anything in VS Code; all is automatic. Just follow 4D-Analyzer updates when requested by the extension.

Reminder

As these two capabilities need to reference project files, they run fine only if the opened 4DM file is placed in the project folder architecture.

Go To Definition

Like most developers, when you are reading or editing code, you often need to check the definition of a code element; with VS Code, you can do this by right-clicking on the code element. This opens a contextual menu containing a “Go to definition” menu item. Select this menu item; your cursor will be placed where the code element is defined. And if the code element is defined in another 4dm file, VS Code will automatically open the corresponding file before placing the cursor at the right place.
Code elements available for this feature are:

  • process variables
  • local variables
  • parameters
  • named parameters
  • project methods
  • user classes
  • user classes functions

 

In the example below, we did a right-click on a user class function and selected the Go to a definition menu item of the popup:

VS Code opened the corresponding user class file and placed the cursor at the beginning of the function:

blank

Signature Help

Another capability included in 4D v19 R7 is the Signature Help of code elements.
When you place your mouse cursor on a code element, VS Code will display a tooltip containing information about it depending on its type:

  • the grammar and a short description for 4D commands
  • the grammar and the first mark-down comment line for project methods
  • the grammar and a brief description of 4D native classes functions
  • the grammar for user classes functions (from host project or component)
  • the grammar and the comment placed on the declaration line for all variables

 

The screenshot below was taken when the mouse hovers a user class function. VS Code displays then a tooltip with function grammar:

blank

Much better, VS Code also displays a tooltip when typing these code elements (except for variables) so that it helps you when coding!
And the cherry on the cake, the edited parameter, is highlighted in the tooltip when you type a parameter!

The screenshot below was taken when typing the second parameter of a user class function. VS Code then displays a tooltip with function grammar and highlights the proper parameter:

blank

If you still need more information, drop us a comment on the 4D Forums.

Discuss

Tags 4D-Analyzer, Code editor, v19 R7, v20, vscode

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy