I wish I could choose in the IDE to autocomplete the "try" word with "except end" block, not "finally end". Is this perhaps already there and I dont see it? Or maybe I could report it as an idea for a dropdown list that would let you choose whats your preference.
1) try - finally
2) try - except
3) try - except - finally
EDIT WHILE STILL WRITING THIS. I found a solution
So NVM!
Use
Code Templates.
If anyone is interested the template is here:
try
try
$Param()
except
$Param()
end$AddSemicolon()
finally
$Param()
end$AddSemicolon()
Use it in Tools -> Code Templates, also assign a hotkey in Tools -> Options -> Key Mappings
Bonus template:
$Param(VarName) := $Param(TMyClassName).Create;
try
try
$Param()
except
$Param()
end$AddSemicolon()
finally
$Param(VarName,Sync=1).Free;
end$AddSemicolon()