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.
- First, create a new Tcl file in an Tcl project
- Copy and paste the following code to that file using Tcl editor:
#Code assist example
proc printSum {arg0 arg1} {
puts [expr $arg0+$arg1]
}
- Put the cursor after the end of the code fragment and press Ctrl + Space .
- The first line is selected, now just press Enter and type some arguments.
That's it!
Tcl editor