Having had this with most versions of Delphi over the years, so I'm wondering, maybe this is something wrong with my code or this is the expected behavior from the IDE ..
Usually, when you place the cursor over a procedure / function / variable, etc., you can press Alt + Up, and it will go to where it was declared both in the same block and in separate ones, as well as if you right-click and select “Find declaration”, but very often it doesn’t work, even if you hover over and after a second, it tells you like .. “Declared in xx.pas”, but it it won’t go there anyway. Even if I type unitname.proc and try to execute proc, it still doesn't go to proc. If I open the block first (ctrl + enter over the device), even if I close it later, then it will work.
Is there a reason why this is happening?
ide delphi
hikari
source share