I’m lazy. If I can drive a screw with my cordless drill in 5 seconds vs 60 seconds, but have to walk to the garage to get it, I’ll pick the drill over the screwdriver every time. Probably because after I’m finished with that screw, my foreman will walk over and decide she wants the wall ornament moved a few micrometers to the left.
I think the best developers are lazy. I say this, but I’m pretty sure I stole it from someone else – developers don’t write code, they write code that writes code.
So what does any of this have to do with SQL Developer?
If my tool touches a file – ok that sounds a little weird – there’s a good chance I’m going to go need to inspect it afterwards. Maybe I’m saving a file, creating a new one, or inspecting the contents of a blob record. The point is, I absolutely HATE having to dive into Explorer or Finder (yes, I used Windows and OSX) and hunt for that file. I often forget if I saved it to my desktop or put in My Documents or if it got saved to the dreaded TEMP directory.
So now in version 3.1 of SQL Developer, whenever you interact with a file via a the OS file browser, SQL Developer logs that file and lets you open it directly without having to leave SQL Developer and go hunting for it later!
You need the Early Adopter 3 release of v3.1 to access this feature. Go download that already!
I export my query results to XLS
So after I hit the ‘Export’ control, I need to choose a file for it to write to, like so
The file chosen here gets logged in the SQL Developer Log panel. Note if you manually type a filepath and filename int a dialog, that does not currently get logged (YET!)
See the files you’ve touched
There’s a new pane in the Log panel labeled ‘File.’ If you click on the filename, SQL Developer will attempt to open it. You will need to make sure your External Editor preferences specify the program you want used for each file type.
Here’s what it looks like:
So I can now dive into that handy PDF I just created and proof it before I send it over to the boss. That’s going to save me about 10-15 seconds every time I do something file-related. And that’s what we’re all about here, saving you time! Well, that and taking over the world.