I am developing with Delphi 10.2 Tokyo.
When I try to write a conditional expression with a ()
when entering an if
statement, it becomes (true)
when I enter (
and I have to delete the true
part before writing the conditional expression.
Can I make it so that it automatically becomes ()
and the cursor is in the middle?
I have been trying to find out if there are any good settings in the tool options. However, I could not find any such settings.
What you want will work when you follow the following steps:
if
in the code editor and press Space or TAB to invoke the "if"-code template(
(opening round bracket) and your expression should be enclosed in brackets nowFor further references about live (or code) templates and how to add/edit them please see the official documentation: