Alex Rivera | Logout

In Delphi IDE, how to quickly determine the location of an open non-project-related file?

Asked 2009-06-24T20:12:12.770
10

This is probably a question that has an easy/simple/obvious answer, but I've found myself asking it many, many times, and never able to answer it:

When I Ctrl-click a class name, Delphi loads up the unit that defines it (assuming it's on the browse path). Once it's open in the IDE, is there a way to quickly find out where that PAS file resides folder-wise, on the hard drive?

Edit
Report

1 Answer

3

Usually File->Save As also defaults to the correct folder.

For example, if you position the caret inside a unit name and press Ctrl-Enter (which, BTW, works even if program is running in the debugger when Ctrl-Click doesn't) and do File->Save As, you'll be taken to the correct folder.

At least that's how I was always doing that - before learning two new tricks here :)

answered 2009-06-24T21:45:19.760

Your Answer