Skip to main content

Shortcuts

Default keyboard shortcuts

When CODESYS Development System is first installed, the following key combinations are set by default.

Tip

You can customize the default shortcuts to fit your personal requirements.

The default keyboard shortcuts are available in the ToolsCustomize menu, on the Keyboard tab. You can assign a keyboard shortcut to any of the commands listed there, or remove it or change it.

For more information, see: Customizing Keyboard Shortcuts.

Icon

Commands

Shortcut

Description

Category View

Menu: View

_cds_icon_devices_view.png

Devices

Alt + 0

Opens the Devices view

_cds_icon_full_screen.png

Full Screen

Ctrl + Shift + F12

The Full Screen command toggles between full-screen mode and window mode

_cds_icon_pous_view.png

POUs

Alt + 1

Opens the POUs view

_cds_icon_modules.png

Modules

Alt + 2

Opens the Modules view

_cds_icon_messages.png

Messages

Alt + 3

Opens the Messages view

Category CFC

Menu: CFC

Select All

Ctrl + Shift + A

Selects everything in the CFC editor

cfc_icon_reset_pins.png

Reset Pins

Ctrl + U

Resets the pins of a box

Insert Output

Ctrl + A

New output

Insert Box

Ctrl + Shift + B

New box

Insert box from input assistant

Ctrl + B

Opens the Input Assistant

Insert box with EN/ENO from input assistant

Ctrl + Shift + E

Opens the Input Assistant

Insert Input

Ctrl + Q

_ld_icon_negate.png

Negate

Ctrl + N

Insert Jump

Ctrl + L

Switch S/R/Ref/None

Ctrl + M

Category File

Menu: File

Exit

Alt + F4

Exits CODESYS Development System

_cds_icon_new_project.png

New Project

Ctrl + N

_ico_open_project.png

Open Project

Ctrl + O

icon_saveproject.png

Save Project

Ctrl + S

Category FBD/LD

Menu: FBD/LD

_cds_icon_il_delete_il_line.png

Delete IL line

Ctrl + Del

_cds_icon_edge_detection_fup.png

Edge Detection

Ctrl + E

Before the selected box input or output

cfc_icon_element_box.png

Insert Box

Ctrl + B

In the selected network at the end

cds_icon_insert_box_eneno.png

Insert Box with EN/ENO

Ctrl + Shift + E

_cds_icon_insert_branch.png

Insert Branch

Ctrl + Shift + V

At the selected line

cds_icon_insertcoil.png

Insert Coil

Ctrl + A

_cds_icon_ld_contact.png

Insert Contact

Ctrl + K

_cds_icon_insert_contact_right.png

Insert Contact (right)

Ctrl + D

_cds_icon_ld_contact_parallel.png

Insert Contact Parallel (above)

Ctrl + P

_cds_icon_insert_contact_parallel_below.png

Insert Contact Parallel (below)

Ctrl + R

_cds_icon_fbd_assign.png

Insert Assignment

Ctrl + A

_cds_icon_edge_detection_fup.png

Insert Edge Detection

Ctrl + E

cds_icon_insert_empty_box.png

Insert Empty Box

Ctrl + Shift + B

_cds_icon_network.png

Insert Network

Ctrl + I

_cds_icon_network_below.png

Insert Network (Below)

Ctrl + T

_cds_icon_fbd_input.png

Insert Input

Ctrl + Q

_cds_icon_nwl_jump.png

Insert Jump

Ctrl + L

_cds_icon_fbd_ld_il_negation.png

Negation

Ctrl + N

Paste above

Ctrl + H

Paste below

Ctrl + F

Paste right (after)

Ctrl + G

_cds_icon_fbd_ld_il_set_output_connection.png

Set Output Connection

Ctrl + W

_cds_icon_set_reset.png

Set/Reset

Ctrl + M

_ld_icon_comment_out.png

Toggle Network Comment State

Ctrl + O

_ld_icon_update_parameters.png

Update Parameters

Ctrl + U

View as function block diagram

Ctrl + 1

View as instruction list

Ctrl + 3

View as Ladder Logic

Ctrl + 2

Category Declaration

Menu: Declaration

_cds_icon_declare_variable.png

Insert

Ins

Insert

Category Window

Menu: Window

Close Editor

Ctrl + F4

Previous Editor

Ctrl + Shift + F6

Next Editor

Ctrl + F6

Previous Pane

Shift + F6

Next Pane

F6

Toggle First Pane

Alt + F6

Category Breakpoints

Menu: Debug

Toggle Breakpoint

F9

icon_step_into.png

Step Into

F8

icon_step_out.png

Step Out

Shift + F10

icon_step_over.png

Step Over

F10

Category Help

Help

_cds_icon_content.png

Contents

Ctrl + Shift + F1

Category SmartCoding

icon_inputassistant.png

Input Assistant

F2

Input Assistant

Auto Declare

Shift + F2

Auto Declare

Category Ladder (LD2)

Menu: Ladder

_ld_icon_comment_out.png

Outcommented

Ctrl + O

cds_icon_insert_box.png

Insert Box

Ctrl + B

Switch Edge Detection

Ctrl + E

_cds_icon_ld_contact.png

Insert Contact

Ctrl + K

cds_icon_insertcoil.png

Insert Coil

Ctrl + A

_ld_icon_input.png

Insert Input

Ctrl + Shift + I

_ld_icon_output.png

Insert Output

Ctrl + Shift + O

_ld_icon_st_block.png

Insert ST Block

Ctrl + Shift + S

_ld_icon_negate.png

Negate

Ctrl + N

_cds_icon_network.png

Insert Network

Ctrl + I

Switch Set/Reset Modifier

Ctrl + M

_cds_icon_nwl_jump.png

Insert Jump

Ctrl + L

_ld_icon_return.png

Insert Return

Ctrl + R

_ld_icon_en.png

EN

Ctrl + Shift + E

Adds or removes an EN input

_ld_icon_eno.png

ENQ

Ctrl + Shift + N

Adds an EN0 input

_ld_icon_open_parallel_branch.png

Open Parallel Branch

Ctrl + P

_ld_icon_close_parallel_branch.png

Close Parallel Branch

Ctrl + Shift + P

Category Bookmarks

Menu: EditBookmarks

_cds_icon_cmd_next_bookmark.png

Next Bookmark (Active Editor)

F12

Next Bookmark (Active Editor)

_cds_icon_cmd_previous_bookmark.png

Previous Bookmark (Active Editor)

Shift + F12

Previous Bookmark (Active Editor)

_cds_icon_bookmark_new.png

Toggle Bookmark

Ctrl + F12

Toggle Bookmark

Category: "Message View"

Next Message

F4

Next Message

Previous Message

Shift + F4

Previous Message

Category Online

Online

Debug

Force Values

F7

Force Values

_cds_icon_login.png

Login

Alt + F8

_cds_icon_logoff.png

Logout

Ctrl + F8

Single Cycle

Ctrl + F5

_cds_icon_start.png

Start

F5

_cds_icon_stop.png

Stop

Shift + F8

Unforce Values [active application]

Alt + F7

Write Values [active application]

Ctrl + F7

Category Browse Project

_cds_icon_goto_definition.png

Go to Definition

Ctrl + Shift + D

Go to Definition

_cds_icon_cross_references.png

Display Cross References

Ctrl + Shift + X

Display Cross References

Category Undo/Redo

Standard Commands

_cds_icon_standard_undo.png

Undo

Ctrl + Z

_cds_icon_standard_redo.png

Restore

Ctrl + Y

Category Find/Replace

Edit

_cds_icon_replace.png

Replace

Ctrl + H

_cds_icon_replace_in_project.png

Replace in Project

Ctrl + Shift + H

_cds_icon_find.png

Find

Ctrl + F

_cds_icon_find_in_project.png

Find in Project

Ctrl + Shift + F

_cds_icon_find_previous.png

Find Previous

Shift + F3

Find Previous (Selected)

Ctrl + Shift + F3

_cds_icon_find_next.png

Find Next

F3

Find Next (Selected)

Ctrl + F3

Category Text Editor

Structured Text and Extended Structured Text (ExST)

Toggle Field for Incremental Search

Ctrl + Shift + I

Make Lowercase

Ctrl + U

Make Lowercase

Make Uppercase

Ctrl + Shift + U

Make Uppercase

Overwrite Mode

Ins

Overwrite Mode

_cds_icon_comment_out.png

Comment out selected lines

Ctrl + O

Comment out selected lines

_cds_icon_uncomment.png

Uncomment selected lines

Ctrl + I

Uncomment Selected Lines

Category Build

_cds_icon_build.png

Generate Code

F11

Generate Code

Category Clipboard

Standard Commands

_cds_icon_standard_copy.png

Copy

Ctrl + Ins

_cds_icon_standard_cut.png

Cut

Ctrl + X

_cds_icon_delete_from_list.png

Delete

Del

_cds_icon_standard_paste.png

Insert

Ctrl + V

Select All

Ctrl + A

Shortcuts in the ST Editor

Table 172. ST Editor

Key Combination

Shift + Alt +

Extends the rectangle selection of the IEC code to the right.

Hint: Use the rectangle selection to change the indentation of the code.

_cds_square_selection.png

Shift + Alt +

Extends the rectangle selection of the IEC code to the left

Shift + Alt +

Extends the rectangle selection of the IEC code up

Shift + Alt +

Extends the rectangle selection of the IEC code down

Shift +

Extends the selection by one character to the right

Shift +

Extends the selection by one character to the left

Shift +

Extends the selection by one line up

Shift +

Extends the selection by one line down

Shift + roll mouse wheel

Scrolls the IEC codes along the scroll bar

A scroll bar is automatically provided if the code can no longer be displayed in the window.

Ctrl + roll mouse wheel

Zooms in and out of the IEC code

Ctrl + Shift + i

Opens the dialog for the incremental search for strings

Specify a string. This string is used for filtering. All matches are highlighted.

_cds_incremental_filter.png

Alt + Page Up

Alt + Page Down

Jumps to the next highlighted match in the IEC code

The shortcuts are active only when the dialog for the incremental search is open.



Shortcuts for Variable Declaration

In the textual declaration editor, you can use shortcuts where you declare variables to save from typing.

Specify the short form in a line of code and complete the action by pressing Ctrl + Enter. The line of code is then automatically completed. You can shorten the specification of the scope and you can shorten the variable declaration.

For more information, see section "Short form feature": Using Input Assistance

Table 173. Scope

Short scope

After pressing Ctrl + Enter, completed to

v

VAR

ev

END_VAR

vi

VAR_INPUT

vo

VAR_OUTPUT

vio

VAR_IN_OUT



Table 174. Variable declaration with short form

<short declaration> + Ctrl + Enter

The short declaration is supplemented to a complete variable declaration with indentation, final semicolon, and comment.

In a line of code, first specify a variable name and, after a space the abbreviations for data type, address, initialization, and comment (all optional). Complete the entry by pressing Ctrl + Enter. The abbreviated entry is then added.

<variable name> %<address><short form for data type><initialization> ;<comment>

Options for the short declaration

<variable name>

Specify at least one variable name.

You can also specify multiple variable names separated by spaces. The comma is added automatically.

% <address>

Optional

The short address is supplemented by an AT declaration.

<short form for data type>

Optional

The default data type is BOOL. If no data type is specified, then BOOL is added.

Possible short forms with full syntax in brackets

  • b ( : BOOL)

  • d ( : DINT)

  • i ( := INT)

  • l ( : LINT)

  • r ( : REAL)

  • s ( : STRING)

    s 8 ( : STRING(8) with string length

  • t ( : TIME)

  • u ( : UINT)

  • w ( : WORD)

<initialization>

Optional

Specify a literal which matches the data type.

The option is supplemented to

:=  <literal>

; <comment>

Optional



Table 175. Examples

Short declaration

After pressing Ctrl + Enter, completed to

xStart

xStart : BOOL;

xStop b

xStop : BOOL;

xSensor %IX7.5

xSensor AT %IX7.5: BOOL;

diMax d 999

diMax: DINT;

iMaxLoop i 100

iMaxLoop : INT := 100;

liBigLoop l

liBigLoop : LINT;

rRadius r

rRadius : REAL;

strStateInProgress s 32 ; State in progress

strStateInProgress : STRING(32); // State in Progress

tMaxTime t

tMaxTime : TIME;

uiCounter u

uiCounter : UINT;

wFilter w 16#aaaa

wFilter : WORD := 16#AAAA;

Error_1 Error_2 Error_3 i ; Error codes

Error_1, Error_2, Error_3 : INT; // Error codes



Windows™ shortcuts

Windows™ keyboard shortcuts are generally supported by CODESYS.

Use the following keyboard shortcuts to navigate in the following: Devices view, POUs view, Library Manager (in the contents), task configuration, Input Assistant, cross reference list, Visualization Toolbox view, properties, visualization tags view, trend recording, trace configuration, or repositories.

Objects in the views listed above are marked with the _cds_icon_add_small.png symbol when there are more objects below them. The view can be expanded at this point. Objects are marked with the _cds_icon_remove_small.png symbol when there are no more objects below them. The view is fully expanded.

Table 176. Useful Windows shortcuts for navigation

Keyboard Area

Key

Procedure

Effect

Numeric keypad

*

In the tree view, select an entry marked with the _cds_icon_add_small.png symbol. Then press the * key.

Everything which is located below the selected object or folder in a tree view is expanded.

Numeric keypad

Arrow keys

+

In the tree view, select an entry marked with the _cds_icon_add_small.png symbol. Then press the + or key.

The node is marked with the _cds_icon_add_small.png symbol.

The object or folder is expanded.

Numeric keypad

-

In the tree view, select an entry marked with the _cds_icon_remove_small.png symbol. Then press the - key.

The folder or element is collapsed.

Numeric keypad

Arrow keys

/

In the tree view, select an entry marked with the _cds_icon_remove_small.png symbol. Then press the / or key.

Everything below the selected object or folder is collapsed.

Arrow keys

In the tree view, select a node. Then press the key.

The selection moves down.

Arrow keys

In the tree view, select a node. Then press the key.

The selection moves up.



Tip

Make sure that the numeric keypad is enabled when you use shortcuts with keys on the numeric keypad.

Table 177. Zoom

Keyboard Area

Shortcut

Effect

Numeric keypad (numpad)

Ctrl + +

Zoom in

Numeric keypad (numpad)

Ctrl + -

Zoom out