Azare Puasa

Note To Self

Connect

  • Facebook
  • Twitter
  • Linkedin
  • Home
  • Blog
  • My Fave Videos
  • Success Strategies
  • Achievements
  • Baking For Men
  • Matters of the Heart
  • Linux
  • WordPress
  • Programming
  • Book Review
  • Others

Eclipse keyboard shortcuts

Posted on June 10, 2010 by Azare Puasa

I ‘ve been using Eclipse for Android for quite a while now. There are 2 keyboard shortcuts that i have been using lately and find very useful when coding.

The first is Auto format shortcut. This is available in editor’s right-click menu but press Ctrl + Alt + F is faster. This is a time saver. I am someone who likes to keep my code neat and tidy. I add tabs, indentation and white spaces in my code. It can be quite a hassle to code and format. With auto format, I can concentrate typing out my code and not care about formatting.  Below is screenshot of my layout xml file before auto format.

After Ctrl + Alt + F, this is how it looks.

Neat right? This can be use for .java as well.

The second is automatic importing of package. Don’t have screenshot for this. Came across this when i was going through android help file example. A time save as well for someone like me who likes to try out the codes from books or webpages. I can skip typing out the import statements and jump straight to typing out the example codes. When i’m done, I press Ctrl + Alt + O and the required import statements are added. Note that this is applicable for .java files only.

Knowing such shortcuts are part of the process of learning coding through IDE. Not only does it helps increase productivity, it makes you feel good having these skills at your fingertip and share it with someone that doesn’t know about them.

About Azare

He is a full-time software developer and an Internet Infopreneur. He has a decade of experience developing Installshield Installscript. After getting his RHCE, he has short stint as a Redhat System Engineer. His work now involves coding Java language. In his free time, how dabbles with Wordpress website development and SEO. He loves archery and golf.

Contact Azare

Step 1 of 2

50%

Azare’s bookshelf: read

Click Millionaires: Work Less, Live More with an Internet Business You Love
Outsource Smart: Be Your Own Boss... Without Letting Your Business Be the Boss of You
How I Made My First Million on the Internet and How You Can Too!: The Complete Insider's Guide to Making Millions with Your Internet Business
Winning The Game of Life!
The $100 Startup: Reinvent the Way You Make a Living, Do What You Love, and Create a New Future
The Laptop Millionaire
Speed Reading in a Week: Teach Yourself
The 4-Hour Workweek
Think and Grow Rich
The Monk and the Riddle: The Education of a Silicon Valley Entrepreneur
Success as an Introvert for Dummies
The Clean Coder: A Code of Conduct for Professional Programmers
Be Rich and Happy
Celebrating Failure: The Power of Taking Risks, Making Mistakes, and Thinking Big
The Art of Readable Code
A Gift to My Children: A Father's Lessons for Life and Investing
Zero to One: Notes on Startups, or How to Build the Future

Copyright ©2025 · Azare Puasa - All Rights Are Reserved · Terms & Conditions· Privacy Policy

Copyright © 2025 · Azare Puasa on Genesis Framework · WordPress · Log in