Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

lachoy (1663)


I am actually Chris Winters; I am actually living in Pittsburgh, Pennsylvania, USA; I am actually married and have three cats. (Guess what one of them is named?) I am the "OpenInteract" guy, which could be good or bad.

Journal of lachoy (1663)

Tuesday March 14, 2006
09:40 AM

Another DWIM in IDEA: image size

[ #28985 ]

In addition to being a fantastic Java IDE, IDEA is a pretty sharp XML/HTML editor. It understands DTDs and schemas and is able to apply its autocomplete and in-time validation to these documents just as it does with Java source. And the editor for some XML documents have refactoring smarts built-in as well -- Shift-F6 (Rename) on an Ant variable will rename it throughout the file. (I wouldn't be surprised if it did so in files called by the Ant build script either.)

So while editing some Javadoc I stuck in an image link. IDEA found the image for me: in the src attribute I typed 'd' then Ctrl-space, '/', then Ctrl-space again and it found the only PNG file there. Easy enough.

But then I typed 'height' and thought, "I wonder if it'll autofill this...". So I followed with Ctrl-space and, sure enough, the image height popped in. Same with the width. Nice!

Obviously the technology behind this isn't astounding, it's just one of the nice little surprises where Jetbrains' attention to detail reveals itself.

(It just occurred to me that I've posted two items in a row about Jetbrains. Just a coincidence, honest.)

Posted from; read original

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.