PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Indenting an existing code
  • Configuring the automatic re-indent 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.
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 code line to the left, use "Code .. Indent to the left".
  • To indent the current code line to the right, use "Code .. Indent to the right".
  • To automatically indent a section of code, select "Code .. Automatic".
    A window allows you to configure the scope of automatic indent:
    • Current code: only the process currently edited (where the mouse cursor is located) is re-indented.
    • Current element: all the processes associated with the element currently edited in the code editor are re-indented (the codes of the window, controls and menus associated with the window for example).
    • The entire code displayed in the active code window: all the processes currently displayed in the code window will be re-indented.
    • The entire project: all the processes of all the project elements.
Several options can be used to indent an existing code or the code currently typed:
  • To indent the current code line to the left, on the "Code" pane, in the "Edit" group, click "De-indent".
  • To indent the current code line 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 indent".
    A window allows you to configure the scope of automatic indent:
    • Current code: only the process currently edited (where the mouse cursor is located) is re-indented.
    • Current element: all the processes associated with the element currently edited in the code editor are re-indented (the codes of the window, controls and menus associated with the window for example).
    • The entire code displayed in the active code window: all the processes currently displayed in the code window will be re-indented.
    • The entire project: all the processes of all the project elements.

Configuring the automatic re-indent of a pasted code

To automatically re-indent the code during a copy/paste:
  1. Display the options of the code editor ("Tools .. Options .. Options of code editor").Display 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".
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment