Autocompletion of identifiers

The autocomplete function is a code completion feature similar to Google's autocomplete function when you enter search words. It speeds up the process of software development by reducing the keyboard input required and the number of variable names to remember.

The autocomplete function is provided for the following editors:

  • ST editor

  • LD editor

  • SFC editor

  • Variable declaration editor

  • Entry data monitor

  • Recipe editor etc.

Tip
  • <Ctrl> + <Space> displays the list of proposals depending on the caret position. All characters to the left of the caret position match the characters of the proposals in any order. The list of proposals is alphabetically sorted.

  • <F2> moves the cursor to position 1 (the position where there are no more characters to the left of the caret position) and displays all available proposals.

  • Variable names, instruction names, and keywords are always replaced completely by the selected proposal.

  • In other cases, the substring from the caret position to the right end position from the current entry is replaced by the selected proposal.

  • If no proposals are displayed, enter less characters or move the cursor to position 1 from the current entry to increase the number of hits.

  • Characters in red color indicate that the proposal contains the search characters, but in a changed order, e.g. when you mistyped the current entry, Control FPWIN Pro7 tries to find proposals with the correct order.

  1. In an editor start typing or press <Ctrl> + <Space> or press <F2>
  2. Select a proposal with the mouse or the cursor keys and press <Tab> or <Enter> to insert the selected proposal
    Press <Esc> to close the list of proposals without inserting something into the editor.
Related topics:

Overwrite existing entries

The complete entry is replaced by the selected proposal. Standard text modification with highlighting and pressing <Del> is also possible.

  1. Place the cursor at the desired position of the current entry. The characters left to the caret position match the characters of the proposals.
    Example

    Current entry: iWordError

    Characters you want to match the proposals

    Caret position

    Remaining characters

    iWo

    |

    rdError

    Enter a character, e.g. 'b'. The proposals match the characters iWo in addition to the entered character 'b'.

    As a proposal, e.g. iWordBuffer is displayed.

  2. Select a proposal
  3. <Enter>

    The current entry is replaced by the proposal selected from the list.

Change existing entries

The current entry is partially replaced by the selected proposal.

  1. Place the cursor after the last character you want to keep in the current entry, e.g. set caret after iInput
    Example

    Part you want to keep

    Caret position

    Part you want to change

    iInput

    |

    Var1

  2. Start typing 'v' and select an entry from the list, e.g. Variable1

    If no proposal is diplayed, there is no alternative entry containing the characters you want to keep.

  3. Var1 is replaced by Variable1 and iInput is kept. Result: iInputVariable1

Modified on: 2023-03-09Feedback on this pagePanasonic hotline