Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect a fragment of code from auto-formatting CTRL+D in delphi

Is there any directive to prevent fragment of code from being changed?

For example:

procedure Test;
{CODE_FORMATTER OFF}
const  a1 = 'a';  a2 = 'b';  a3 = 'c';    
                  b2 = 'd';  b3 = 'e';

{CODE_FORMATTER ON}
begin
end;    
   
like image 283
lcdk Avatar asked Oct 21 '25 20:10

lcdk


1 Answers

Is there any directive to prevent fragment of code from being changed?

No there is not.

like image 54
David Heffernan Avatar answered Oct 23 '25 18:10

David Heffernan