You are here: TI‑Nspire™ CX CAS Reference Guide > TI-Nspire CX II - TI-Basic Programming Features

TI-Nspire CX II - TI-Basic Programming Features

Auto-indentation in Programming Editor

The TI-Nspire™ program editor now auto-indents statements inside a block command.

Block commands are If/EndIf, For/EndFor, While/EndWhile, Loop/EndLoop, Try/EndTry

The editor will automatically prepend spaces to program commands inside a block command. The closing command of the block will be aligned with the opening command.

The example below shows auto-indentation in nested block commands.

Code fragments that are copied and pasted will retain the original indentation.

Opening a program created in an earlier version of the software will retain the original indentation.

Improved Error Messages for TI-Basic