The Artima Developer Community
Sponsored Link

Java Buzz Forum
Friday Java Non-Quiz: Sharing An Obscure IDE Trick Day

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Friday Java Non-Quiz: Sharing An Obscure IDE Trick Day Posted: Oct 24, 2008 6:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Friday Java Non-Quiz: Sharing An Obscure IDE Trick Day
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

If you couldn't tell from last weeks questions that I'm running out of legitimate Java quiz questions, I don't know how loudly I have to say it.

Let's face it, Java is a pretty low-surprise language. Tedious maybe, but never mysterious. The contrast with C++ is astounding. I have to debug some JNI code yesterday, and when I got to the C++ part, I do indeed have to stare at lines like

int a = 0;
foo(a);
if (a == 1) bar();

and go, "That's impossible!"

Anyway, I did learn a new IntelliJ IDEA trick recently from the IDEA Refcardz. Thanks to CodeToJoy for alerting me to their existence.

It's Ctrl-Shift-UpArrow and Ctrl-Shift-DownArrow. What it does is to move things up or down within scope:

  • If the cursor is on a statement, it moves the statement relative to adjacent statements. The movement stops when the statement hits an opening or a closing brace of a if statement, while statement or a method definition.
  • If the cursor is on the name of a method or a field, it moves the method or field up or down relative to other methods or fields within its defining class.

What other IDE tricks have you learned recently? Can you do what I just described in your favorite IDE, Java or other languages?

Read: Friday Java Non-Quiz: Sharing An Obscure IDE Trick Day

Topic: A Closer Look at Data Encapsulation Previous Topic   Next Topic Topic: Links for 2008-10-16 [del.icio.us]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use