ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Code editor
  • Overview
  • Code options
  • Code completion
  • Automatic actions on pasted code
  • Enabling the spelling checker
  • Code history
  • Show errors
  • Hardware acceleration
  • Sticky header
  • Debugger options
  • Debugger
  • Remote debugging - WMDev
  • Style options
  • Documentation options
  • AI (preview)
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
A series of options allows you to customize and take full advantage of the code editor.
To configure the general code editor options:
  1. On the "Home" tab, in the "Environment" group, expand "Options" and select "Code editor options".
  2. The configuration window is displayed. The available options are grouped in 4 tabs:
Code options

Code completion

The input suggestion options are as follows:
  • Enable the assisted input after an idle time of:
    This option enables code completion in your project. For more details, see Automatic completion.
  • Enable parameter hints:
    This option enables code suggestions for parameters of procedures and class methods. For more details, see Automatic documentation of procedures and methods.
  • Never switch to overwrite mode with the Ins key.:
    This option prevents you from accidentally deleting code.
  • Highlight the blocks of code (IF/THEN/END, brackets, ...):
    If the mouse cursor is positioned on a statement block (IF, THEN, ELSE, FOR, END, LOOP, WHEN EXCEPTION ON, etc.), the different elements of this block are highlighted. For more details, see Code editor: Various operations.
  • Highlight the current line:
    A series of dots around the current line help you quickly identify your position in the code. For more details, see Code editor: Various operations.
  • Highlight the declaration and uses of the current variable:
    Each time the cursor is positioned on an identifier (variable, procedure, data file, etc.), all occurrences of this identifier are highlighted in the current code. For more details, see Code editor: Various operations.
  • F2: Open procedures of classes and sets in separate windows:
    By default, procedures from both classes and sets of procedures are automatically opened in the current code window. This option allows you to use another code window.
  • Automatically close opening characters ()/[]/""... : When enabled, this option allows you to only enter the initial character. As you type, code will appear between the opening and closing characters.
  • Auto indent: Align by '=', 'is', '//':
    This option allows aligning all the text and code to the right of '=', 'is' or '//'. This option will be automatically taken into account for all subsequent automatic reindentations with Ctrl + R. For more details, see Code indentation.
  • Show breadcrumbs
    This option enables breadcrumbs, which will appear at the bottom of the code editor. This allows you to navigate through the code with ease.
  • Type of scrollbar:
    This option lets you choose the type of scrollbar used in the code editor. For more details, see Minimap.
  • Enable automatic correction on Enter:
    This option enables automatic correction of typing errors. Any words containing errors will be automatically corrected when you go to the next line.
  • Tab character width:
    This option allows you to define the width of tabs (in characters) used for indentation.
  • Code language: :
    This option allows you to choose the language used for coding.
  • Keyword case:
    This option defines the case used for WLanguage keywords (for example: IF, FOR or if, for).

Automatic actions on pasted code

You can set certain actions to be applied when copying and pasting code between projects or windows:
  • Convert code to: This option automatically translates the pasted code. All words in the source language will be automatically translated. The pasted code can be translated into French or English.
  • Indent (format and indent pasted code to fit layout): Allows you to automatically re-indent pasted code. For more details, see Code indentation.

Enabling the spelling checker

The spelling checker can be enabled in
  • code comments.
  • literal strings.
For more details, see Checkers available in the code editor.

Code history

The "Save history of code changes" option allows you to:
  • keep track of every change made to the code in the different processes/events.
  • restore the code from a given date, if this code was mistakenly deleted or modified since.
For more details, see Code history.

Show errors

Starting with version 2024, errors are displayed directly next to the line of code. This feature can be configured in the code editor options.
You can decide what kind of information should be displayed on the line of code:
  • Errors.
  • Errors and warnings.
  • Errors, warnings and compilation information.
  • Warnings and compilation information.
  • Nothing.
If you choose to show errors, a fix suggestion tooltip may appear.
Note: Errors, warnings and compilation information are also displayed in the Compilation errors pane.
New in version 2025

Hardware acceleration

The "Enable hardware acceleration in the code editor" option enables Direct 2D, allowing you to take full advantage of your computer's graphics card. This makes the code editor more responsive.
New in version 2025

Sticky header

The "Enable sticky header" option makes it easier to read large portions of code. When enabled, this feature leaves the first line of each block of code visible at the top of the screen as you scroll through the code.
For more details, see Sticky header.
Debugger options

Debugger

The debugger options in the code editor are as follows:
  • Action when going back to the editor while a test is in progress: You can receive a prompt to end the test (default), end the test automatically or continue the test.
  • Minimize the editor in test mode: During a test, the editor is minimized by default. Depending on the hardware configuration (wide screen, 2 screens, etc.), you may not need to minimize the editor.
  • Set a watch on expressions in the code.

Remote debugging - WMDev

You can set the IP address used for debugging.
Style options
The WINDEV, WEBDEV and WINDEV Mobile environments offer several themes. These themes are also available in the code editor. You can create and configure your own theme or import an existing theme.
For more details, see WLanguage code coloring.
New in version 2025
You can define different characteristics of the cursor in the code editor:
  • Blink rate: This value, expressed in milliseconds, determines how fast the cursor blinks.
  • Cursor thickness: This value ranges from 1 to 8. If the "Block" option is selected, the cursor will be as wide as a character.
Documentation options
To simplify the maintenance or the use of existing code by other developers, WINDEV, WEBDEV and WINDEV Mobile propose an automatic documentation for the procedures (or class methods).
This automatic documentation corresponds to a set of comments. These comments can be generated:
  • using the legacy format, i.e. comments preceded by "//". For example:
  • using the Doxygen format.
You can choose the comment format in the "Options" tab of the project description window. For more details, see Project description: Options tab.
The "Synchronize comments with the syntaxes of the procedures" option keeps comments up to date, regardless of any changes made.
New in version 2025
AI (preview)
WLanguage's generative coding AI generates code suggestions as you type.
Here are some examples:
  • autocomplete the current line,
  • suggest a entire section of code,
  • suggest a loop,
  • complete comments,
  • generate WLanguage code to perform the action described in the comments, etc.
Non-intrusive code suggestions appear as "ghost text" (light gray text) below the current line of code or at cursor position. By default, suggestions appear after 100 milliseconds without typing.
To accept a suggestion, simply press the Tab key.
If you are not happy with the suggestion, press Ctrl+Shift+Tab to get another suggestion.
To dismiss the suggestion, keep writing your code, or press Esc. Other suggestions may appear as you type.
WLanguage's generative coding AI is enabled by default.
To enable / disable AI code generation:
  1. Open the code editor options. Go to the "Home" tab, "Environment" group, expand "Options" and select "Code editor options".
  2. In the "AI (preview)" tab, enable or disable the feature.
  3. Confirm.
Note: This feature uses a specific Internet address. In the case of a secure Internet connection, it may be necessary to approve (or "whitelist") certain domains. To see the list of domains, see FAQ 22325: Which domains should I authorize in order to use all WINDEV, WEBDEV and WINDEV Mobile features from a secure Internet connection?.
For more details, see AI WLanguage code generation.
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/29/2025

Send a report | Local help