Show TOC

Function documentationFormatting Locate this document in the navigation structure

 

The Front-End Editor supports a number of useful features that allow you to format your code.

Features

  • Format Selection

    This feature allows you to format a selected block. You can format a selected block by choosing  Format   Format Selection  

  • Surround by Template

    This feature allows you to surround selected text with a defined template. You can insert a template in a selected block by choosing   Format   Surround by template  

  • Extract Template

    This feature allows you to create your own template. You can copy a template and add it to the list of predefined templates by choosing   Format   Extract template.  An Add Code Template dialog appears. You can add shortcut and a description and choose the template to be added.

  • Comment Lines/ Uncomment Lines

    • Comment

      This feature allows you to apply a comment to a line in the code.

    • Uncomment

      This feature removes the comment from the line.

    Use CTRL+ \ for Comment and CTRL+SHIFT+ \ for Uncomment.

  • Comment Selection/ Uncomment Selection

    • Comment Selection

      This feature allows you to apply a comment to a selection.

    • Uncomment Selection

      This feature allows you to remove the comment.

      You can set these features by choosing  Format   Comment Selection  or Uncomment Selection.

  • Increase Line Indent/ Decrease Line Indent

    This feature allows you to indent lines in the code by a certain number of spaces.

    You can increase or decrease line indent by choosing   Format   Increase Line Indent  or Decrease Line Indent.

    You can also increase the line indent by using TAB and decrease the line indent by using SHIFT+TAB.

  • Change Case

    This feature allows you to switch between cases when you code.

    You can switch between cases by choosing   Format   Change Case  .

    You can also change cases using:

    • CTRL+L for Lower Case

    • CTRL+U for Upper Case

    • CTRL+Y for Capitalize

    • CTRL+T for Sentencize

    • CTRL+K for Invert Case

  • Join Lines

    This feature allows you to merge the text of two or more lines.

    You can set it by choosing   Format   Join Lines.  

  • Sort Lines

    This feature allows you to select lines in your source and sort them alphabetically.

    You can set it by choosing   Format   Sort Lines.  

For more information, see

Formatting Settings