Skip to content
QiTASC.com / intaQt Studio / IDE Features /
Indentation Auto-Formatting
/ .. / .. /
Indentation Auto-Formatting










Indentation Auto-Formatting

intaQt Studio supports two types of auto-formatting for:

  • Custom languages (Steps and UI Steps)

  • Verification files

The active file can be auto-formatted:

  • For Windows/Linux users, press: Ctrl + l.

  • For Mac OS users, press: alt + command + l.

The line or selected text region can be auto-formatted:

  • For Windows/Linux users, press: Ctrl + i.

  • For Mac OS users, press: alt + command + i.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
stepdef "step"
x := 1
end

model A
func f(x)
if x = 1 then
return 1
elif x = 2 then
return 2
else
for i in [x]
assert i > 2
end
end
end
end

When typing Ctrl + l or alt(Windows/Linux user) + command + l(Mac OS user), file's indentation will be reformatted as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
stepdef "step"
    x := 1
end

model A
    func f(x)
        if x = 1 then
            return 1
        elif x = 2 then
            return 2
        else
            for i in [x]
                assert i > 2
            end
        end
    end
end