Using content assist

In this section you will learn how to use Tcl content assist, an editor feature which makes code writing a little faster and easier.

  1. First, create a new Tcl file in an Tcl project
  2. Copy and paste the following code to that file using Tcl editor:

    #Code assist example
    proc printSum {arg0 arg1} {
    puts [expr $arg0+$arg1]
    }

  3. Put the cursor after the end of the code fragment and press Ctrl + Space .

    Tcl code assist

  4. The first line is selected, now just press Enter and type some arguments.

    Tcl code assist

    That's it!

Related concepts

Tcl editor