Feature: Special line break handling inside string constants
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When working with Delphi 2007 I noticed a rather interesting feature: If my text cursor is located inside a string constant (either in a valid, closed one or one with the trailing ' missing) and I press enter then not only a normal new line is inserted, but the string is also terminated and "restarted" accordingly.
For example:
s := 'Hello |
"Enter"
s := 'Hello ' +
'|
Or
s := 'Hello |World';
"Enter"
s := 'Hello ' +
'World';
(of course this should work everywhere a string constant is used)
Maybe a config option for specifying whether the "+" should be inserted at the end or the beginning would be nice.
E.g.
s := 'Hello ' +
'World';
vs
s := 'Hello '
+ 'World';
Mantis conversion info:
- Mantis ID: 23886
- OS: Linux
- OS Build: 3.6
- Platform: i386
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 40352 (#af73c218)