AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Editores / Editor de código
  • Overview
  • How to?
  • Indenting an existing code
  • Configuring the automatic reindentation of a pasted code
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
When typing compound statements ("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 compound statement.
Novedad versión 2025
Thin lines show the indentation in the code editor. The line becomes thicker to indicate the area in which the cursor is positioned.
Automatic indentation also allows aligning by the '=' sign and the word 'is'.
How to?

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 go to the "Código" tab, "Edición" group and click "Disminuir sangría".
  • To indent the current line of code to the right go to the "Código" tab, "Edición" group and click "Aumentar sangría".
  • To automatically indent the entire code, on the "Código" tab, in the "Edición" group, click "Sangría auto." (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 "Código" tab, in the "Edición" group, expand "Sangría auto." (or press Ctrl + R).
  • A window allows you to configure the scope of automatic indent. The scope may correspond to:
    • código actual: only the process currently being edited (where the mouse cursor is positioned) is re-indented.
    • elemento actual all events associated with the element currently being edited in the code editor are re-indented (e.g. all window, field and menu codes associated with the window).
    • todo el código que se muestra en la ventana de código activa all events or processes currently displayed in the code window will be re-indented.
    • todo el código WLanguage del proyecto all events for all project elements.
  • The "Alinear por '=', '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. Display code editor options: under the "Inicio" pane, in the "Entorno" group, pull down "Opciones" and select "Code editor options".
  2. On the "Code" tab, check "Sangría (el formato y la sangría del código pegado se modifican para ajustarse al diseño de la página)".
    Indentation option
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 31/10/2024

Señalar un error o enviar una sugerencia | Ayuda local