David Schwartz 426 Posted August 10, 2021 (edited) I've noticed that the Refactoring in 10.4.2 can't Rename variables that are defined inline, only those that are defined between the Procedure/Function line and the opening 'begin'. In fact, the more inline vars I use, the less often I see the ability to rename even things defined in the class declaration up in the Interface section. I haven't seen anything mentioned about this. Edited August 10, 2021 by David Schwartz 1 Share this post Link to post
corneliusdavid 214 Posted August 13, 2021 Same here. In fact, using the Rename hotkey, Ctrl+Shift+E, while it works for pre-defined vars (sometimes) when activated on an inline var, acts the same as if it was activated in white-space, which oddly enough, brings up Incremental Search instead (as if you had it Ctrl+E instead). Fortunately, SyncEdit works really well (Ctrl+Shift+J). Share this post Link to post
Darian Miller 361 Posted August 14, 2021 The RADStudio tooling still has a ways to go in order to catch up to the new inline variable language feature (first introduced in November 2018.) IMHO complete support for the language feature should have been available before its full release as I believe releasing it half baked was a waste of a lot of goodwill. At minimum, it should have been a user-enabled optional experimental feature. Last time I checked, some issues remain: RSP-32507 Inline variable breaks the Methods drop-down box in Navigation Toolbar RSP-33176 Extract method refactoring broken by inline var definition RSP-33365 In-block variables break the "Find references" RSP-23096 Incorrect debugger values RSP-22089 Code Formatter Fails on Inline Vars 3 Share this post Link to post