4D Blog

Home Product VS Code Extension: Code Completion

VS Code Extension: Code Completion

January 13, 2023

Product

A new release, a new VS Code extension feature.

4D v19 R8 brings a new capability to the Visual Studio Code editor through the 4D-Analyzer extension: Say hello to code completion.

Starting with 4D v19R8, when you type code in a 4DM file, the contextual suggestions appear in a popup menu. You can go up and down in the list; the signature help of the highlighted item is displayed next.
And you can automatically validate the choice by typing the TAB keystroke or clicking on the desired item in the menu.
Code completion is available for:

    • 4D commands
    • object attributes
    • object functions
    • methods
    • variables
    • constants
    • types

 

The example below displays the VS Code screen when typing “This.t” in an entity class function.

 
The suggestions appear when you type several characters. But if you haven’t typed some characters yet, you can press the CTRL+SPACE keystrokes to display all contextual elements available.
In the example below, we typed the “File“ command and pressed the CTRL+SPACE keystroke to display all related constants.
blank

Completion is also available for keywords! When you type an opening keyword such as If or Use, the corresponding ending keyword is proposed on the following lines.blank

Happy coding! And as usual, feel free to comment on the 4D Forums.

Discuss

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

Latest related posts

  • July 16, 2025

    Recursive Dependency Management: Smarter, Deeper, Safer

  • July 16, 2025

    Stricter class-based typing for objects

  • July 16, 2025

    ORDA – Get started with the touched event

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

  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Data explorer Formula Google Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Data explorer Formula Google Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 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