Internet Explorer 6 is not supported.
Upgrade to view this site.

Blog Archive

Results for the blog tag shortcut.

Defining Variables in Comma Form

Sometimes when I check out other people’s code I see things that I never do when I program. Sometimes they are kind of cool and if I like it enough, it becomes part of my workflow. While looking at some code the other day I saw something that I have never seen before. Variables defined in a comma delimited list. Below is how I normally go about defining variables.

1
2
3
4
5
6
7
8
var red:uint;
var grn:uint;
var blu:uint;
var i:Number;
var f:Number;
var p:Number;
var q:Number;
var t:Number;

The above can also be defined shorthanded using a few less lines. It’s a little thing, but you end up not rewriting the variable declaration every time this way.

1
2
var red:uint, grn:uint, blu:uint;
var i:Number, f:Number, p:Number, q:Number, t:Number;

Zoom and Doom

When you use the keyboard shortcut to zoom in (command +) or zoom out (command -) in Photoshop the window scales along with the image. If you haven’t gotten used to this quirky default behavior yet there is a one-click fix to get it out of your life forever.

Well, at least until the next time you have to drop your preference file. Go to Photoshop > Preferences > General (command K) and click off “Zoom Resizes Windows”. Now the keyboard commands behave the same as the zoom tool. If your missing the good times you used to share with this behavior, take solace in knowing that you can bring it back just by moving your thumb over. You can use the alternate zoom behavior by adding option to the key command. Simply press (option command +) for zoom in and (option command -) for zoom out to bring back the glory days of window scale and zoom.

Get Out of Text Box Free Card

This is a great shortcut that has been a long time coming and has finally arrived in InDesign CS3. When typing in a text box press ESC to lose focus on the text frame and switch to the Selection tool. I can’t tell you how many times I have typed a “v” or “a” in text being such a keystroke freak. Thankfully, I am also aware that it is a habit of mine and so far I have never had a “v” stick around long enough to see a printed piece.

This is probably the reason why Quark made such user-unfriendly keystrokes. Just to prevent this kind of thing from happening. It is a sensible thing to do, but this is why proofreaders exist. And spell check. I would rather have the option to make that mistake than to be limited to whatever the keystroke is for all of Quark’s tools. I’m pretty rusty, but I think it was (option command TAB) to cycle forward and (shift option command TAB) to cycle backward. That gives me Carpal Tunnel just thinking about it. Read more …