PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Overview
  • How to proceed?
  • Indenting an existing code
  • Configuring the automatic reindentation of a pasted code
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
When typing composite statements (such as "Switch", "For" and "While" for example), the code is automatically indented to highlight the structure of the loops used in the program.
As soon as the first statement is typed, the "END" keyword is automatically inserted and the cursor is positioned in the composite statement.
Versions 25 and later
Automatic indentation also allows aligning by the '=' sign and the word 'is'.
New in version 25
Automatic indentation also allows aligning by the '=' sign and the word 'is'.
Automatic indentation also allows aligning by the '=' sign and the word 'is'.
How to proceed?

Indenting an existing code

Several options can be used to indent an existing code or the code currently typed:
  • To indent the current line of code to the left, on the "Code" pane, in the "Edit" group, click "Unindent".
  • To indent the current line of code to the right, on the "Code" pane, in the "Edit" group, click "Indent".
  • To automatically indent the entire code, on the "Code" pane, in the "Edit" group, click "Auto re-indent." (or press Ctrl + R).
To configure the automatic reindentation options:
  • Position the cursor in the code editor (but not on a line that contains WLanguage code).
  • On the "Code" pane, in the "Edit" group, expand "Auto re-indent." (or press Ctrl + R).
  • A window allows you to configure the scope of automatic indent. The scope may correspond to:
    • current code: only the process being edited (where the cursor is located) is reindented.
    • current element: all the events associated with the file being edited in the code editor are reindented (for example, all the codes of the window, of the controls and menus associated with it).
    • the entire code displayed in the active code window': all the events or processes currently displayed in the code window will be reindented.
    • all the WLanguage code of the project: all the events of all the project elements.
  • Versions 25 and later
    The "Align on '=', 'is', '//'" 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.
    New in version 25
    The "Align on '=', 'is', '//'" 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.
    The "Align on '=', 'is', '//'" 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.

Configuring the automatic reindentation of a pasted code

To automatically reindent the code during a copy/paste:
  1. Open the options of code editor: on the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".
  2. In the "Code" tab, check "Indent (pasted code is edited and indented to fit layout)".
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment