Ian Branch 127 Posted March 1, 2023 (edited) Hi Team, My Formatter setting for Line Breaks in 'Line breaks in Var and Const sections' is set to As is. I like to format like this.. // var sAppVersList: string; var aAppPath := ExtractFileDir(ParamStr(0)); var aFileNames := TDirectory.GetFiles(aAppPath, '*.exe'); var sFileName: string; // If I now run the Delphi 'Format Project Sources', I get the following.. // var sAppVersList: string; var aAppPath := ExtractFileDir(ParamStr(0)); var aFileNames := TDirectory.GetFiles(aAppPath, '*.exe'); var sFileName: string; // Is this a bug or have I missed something?? It only happens where values are assigned to the var. Regards & TIA, Ian Edited March 1, 2023 by Ian Branch Share this post Link to post
programmerdelphi2k 237 Posted March 1, 2023 (edited) it's by default! did you try some like this: "... comments break-the-rules ..." do you remember? Quote var xx : typexx = value; or var { } xx = value; or combining... https://en.delphipraxis.net/topic/8466-delphis-formatter-driving-me-mad/?tab=comments#comment-71028 Edited March 1, 2023 by programmerdelphi2k Share this post Link to post
Ian Branch 127 Posted March 1, 2023 (edited) Ummm. Sorry, no. Where is this referred to pls? In any case I would contend that what I have should be OK. 🙂 Edited March 1, 2023 by Ian Branch Share this post Link to post
programmerdelphi2k 237 Posted March 1, 2023 the RAD use some templates to Code Editor like CSS format, you can see on ObjRepo on RAD... then, I think that u can customize it, but it's not documented at all. I has tryed to customize help insight but just for tests... Share this post Link to post
Ian Branch 127 Posted March 1, 2023 K. Tks. Maybe I will submit it as a suggestion/enhancement. Although I still think it is a bug. 😉 Share this post Link to post
programmerdelphi2k 237 Posted March 1, 2023 (edited) I think that it was always that way for me! var... Ctrl+D .... xxxxx // inline way Edited March 1, 2023 by programmerdelphi2k Share this post Link to post
Ian Branch 127 Posted March 1, 2023 It's only become an 'issue' since the introduction of inline assignable variables. Share this post Link to post