Search WebSpherePower's 6,962 WebSphere, Java, and Eclipse article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
THIS WEEK'S POWERTIP
Quickly format your Java code using WebSphere Studio
By Dan Velasco

Welcome to the second week of the WebSpherePower Update newsletter. My name is Dan Velasco, and I hope to be a helpful guide along your journey through the wonderful world of WebSphere. We'll learn, laugh, and bond together through insightful tips lovingly delivered four times a month to your Inbox. I hope you'll enjoy this week's tip and all of the ones that follow. So, without further ado, let's get on with the inaugural tip. Technically, last week's article wasn't really a tip...it was more of an industry backgrounder. Now this, this is a tip...

Keeping your Java code clean and well-organized is something to which we all aspire. One of the great features of WebSphere Studio is that it allows you to quickly and easily format your Java code. All you need to do is right-click somewhere in your Java code and choose the Format option from the pop-up menu. Provided you don't have any text selected, the Format command will work on all of your Java code in the current file and clean it up for you, doing such things as properly indenting statements to make everything much cleaner and easier to read. If you do have text selected, right-clicking and then choosing the Format option will format just the selected text. This is handy if you only want to cleanup part of your Java code rather than all of it.

I often try and include a mini-bonus tip, and today you're in luck because I've got one just for you. One very nice feature when formatting code in WebSphere Studio is that you can select a line or block of code and then use the Tab key to indent the code. This allows you to quickly move code to position it just where you want. If you want to outdent the code (i.e., move it back to the left), simply press Shift + Tab, and the selected code will go in the other direction.

Since the WebSpherePower Update newsletter is just starting, I welcome any comments, questions, or suggestions that you might have. You can reach me at dvelasco@webspherepower.com. My goal is to provide you with high-quality, practical tips that you can quickly put to use on the job. Of course, since the audience is going to be diverse, not every tip will necessarily appeal to your interests, but I'm going to do my best to include a variety of tips, covering such WebSphere-related topics as development, administration, deployment and integration. Just stick with me, because while some tips might not float your boat, other tips will be exactly what you've been looking for. Thanks for reading, and I'll talk to you next time.

Dan Velasco is a Senior Technical Editor for WebSpherePower Magazine and DominoPower Magazine and is an occasional contributor to Computing Unplugged Magazine. He is also a Principal CLP Application Developer (R4, R5 and ND6) as well as a CLP System Administrator (R4 and R5). You can reach him via email at dvelasco@webspherepower.com or on the Web at http://DanVelasco.com.


Other articles you might like
Home > Java (6 articles)
   Locate your JDBC DataSource in WebSphere Application Server using JNDI
   Use WebSphere to develop Java applications for Palm handhelds
   A simple introduction to J2EE
Home > WebSphere Studio (9 articles)
   Setting up a Wiki in WebSphere Studio Application Developer
   Upgrading WebSphere Studio to Version 5.1.2
   Managing multiple workspaces with WebSphere Studio
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent WebSpherePower Articles
A perfect 10: celebrating 10 years online
You can help bring security and safety back to White House email
Introducing the WebSpherePower RSS feeds
From New Jersey to Palm Bay, Florida
A WebSphere pot o' gold
How Elvis entered the building and CES went out the window
WebSphere Application Server 6: what's it all mean?
WebSpherePower News
Excitement brewing for JavaOne 2010, with or without Google
Large companies ignore data centre advice
Onapsis to Release ERP Vulnerability Testing Suite
Botnet Takedown May Yield Valuable Data
VMware app dev platform gazes beyond SpringSource Java
IBM Claims World's Fastest Chip
'Free Java': InfoWorld's guide to the protest goodies
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Smartphone smarts for a mobile world
David Gewirtz Online: CNN commentary and analysis
DominoPower: It's time for Lotus to double-down on Linux and open source
OutlookPower: The strange case of Outlook losing notes and requiring passwords
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login