`
fantasyday
  • 浏览: 34050 次
  • 性别: Icon_minigender_1
  • 来自: 东京
社区版块
存档分类
最新评论

10 Helpful Hints on Moving from Eclipse to IDEA

    博客分类:
  • IDE
阅读更多

http://www.intellij.org.cn/bbs/viewtopic.php?f=3&t=223
1. Learn to use Ctrl+J
2. Install the KeyPromoter Plugin
3. Learn to use Ctrl+Alt+T
4. Print and Use the Keymap
5. Increase Your Heap Size
6. Don't Use the "Eclipse Keyboard Layout" Settings
7. Learn to use Find Effectively
8. Learn to use Ctrl+Shift+A
9. Performance Issues? Stay Bleeding Edge
10. Read the Book

 

10 Helpful Hints on Moving from Eclipse to IDEA

Eclipse is an amazing Java IDE*. It has great refactoring support, a committed community, and an unbeatable price. And two years ago I switched to IntelliJ IDEA. Why is not important**. Which is better is not important***. The goal of this post is to make the transition as easy as possible.

Here are my top ten ways to make the transition easy:

1. Learn to use Ctrl+J
Ctrl+J brings up the Live Template options based on where your cursor is. If you're in Javadoc then there will be some Javadoc intentions, if you have code highlighted then there will be some surround intentions. I wrote my own intention that creates a failing unit test. Seriously... quit typing. You'll get carpal tunnel. Use the intentions instead. The collection iteration intentions are some of the most useful!

2. Install the KeyPromoter Plugin
This plugin pops up a big reminder window every time you perform a mouse action that has a key binding associated with it. It's a great learning tool for the new keyboard shortcuts. Also, if you perform an action 3 times which doesn't have a key binding, then it prompts you to create one. People who use the mouse always underestimate how much time learning the keyboard shortcuts would save them. But remember: like me, you may want to adjust the plugin settings to be less intrusive.

3. Learn to use Ctrl+Alt+T
Highlighting code and pressing Ctrl+Alt+T will bring up the "Surround With" menu.
You can quickly surround the code with an if, for, try/catch, Runnable, Synchronized... The list goes on infinitely. Or at least until you can count to 11, whichever comes first. I use this all the time.

4. Print and Use the Keymap
JetBrains provides a nice overview of all the important keyboard shortcuts on one page. Print this out, cut it into 3 strips, and tape it to the sides of your monitor. Seriously. This is exactly what call centers do in order to speed up their phone operators. It looked goofy but helped me a ton.

5. Increase Your Heap Size
IDEA critics (rightly, in my experience) complain that it is slower than Eclipse. Well, your first step should be to increase the heap size. Locate your idea.exe.vmoptions file and open it with a text editer (IDEA works fine). My file is in C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\bin. Change the -Xmx line to allow a bigger heap. Mine is set at -Xmx512m.

6. Don't Use the "Eclipse Keyboard Layout" Settings
This is an impossible statement to quantify, but: the IDEA keyboard bindings are simply better than the Eclipse bindings. 9 out of 9 of my coworkers agree with this statement. Hey, it's now an empirical statement! Just try it, I swear you'll like it better.

7. Learn to use Find Effectively
Do you know the difference between Find, Find Usages, Highlight Usages in File, and Find in Path? There are 13 entries on the Search menu of IDEA, and every entry has a purpose. Learning the differences has been a huge time saver for me, and only using the one you're most familiar with will cost you a lot of time.

8 . Learn to use Ctrl+Shift+A
Pressing Ctrl+Shift+A brings up a search dialog for actions... whether they be hidden in the menu, toolbar, or just plain hidden! You really don't ever need the menus. Just type Ctrl+Shift+A and see where the wildcard matching can take you!

9 . Performance Issues? Stay Bleeding Edge
At first I wasn't happy with the performance of IDEA 7 on my HUGE Java codebase at work. But every minor release has had a marked improvement on performance. 7.0.2 is currently the most recent GA release. Install it if you're on an earlier version. 7.0.3 is coming soon, and is probably out by the time you read this.

10. Read the Book
I crammed on IDEA in Action for about 4 hours before making the switch, and it helped immeasurably. It's not a great reference or a great how-to. But it does inform you of what is possible. I'll remember that the book explained how to do something, even if I can't remember the steps. Skimming this book will move you from thinking, "I wish IDEA had feature x from Eclipse" to "I know IDEA can do this I just need to figure out how." It's on my bookshelf. Just stop by and borrow it.

I have more, but 10 tips was my limit! Now please, please , PLEASE let me know what helped you make the conversion... I'd love to hear you comments.

* Yes, yes, I know. It is a platform, not an IDE. FlexBuilder http://labs.adobe.com/technologies/flex/flexbuilder3/ blew my mind and proves the point.
** Corporate Policy
*** IDEA

分享到:
评论

相关推荐

    101 Helpful Hints for IELTS

    ### IELTS备考指南:《101 Helpful Hints for IELTS》解析 #### 一、概述 《101 Helpful Hints for IELTS》是一本专门为准备雅思(IELTS)考试的学生编写的实用指导书籍。该书由Garry Adams与Terry Peck共同撰写,...

    Hints on Phase Identification Using Powder X-ray Diffraction

    Hints on Phase Identification Using Powder X-ray Diffraction

    Some Hints on Mathematical Style.pdf

    在《Some Hints on Mathematical Style》这篇文档中,作者David Goss分享了他在获得学位后不久从著名数学家Jean-Pierre Serre那里得到的一些关于数学写作的重要提示。随着时间的推移,Goss发现他自己也经常向其他刚...

    Oracle Hints 用法大全

    ### Oracle Hints 用法详解 #### 一、概述 在Oracle数据库中,为了更好地控制SQL执行计划,提高查询性能,引入了Hints机制。Hints是一种特殊的注释语法,用于指导Oracle优化器如何处理特定的SQL语句。通过合理地...

    oracle hints详细介绍

    ### Oracle Hints 详解 #### 一、Oracle Hints 概述 在Oracle数据库中,Hints(提示)是一种特殊的语法,允许用户直接控制SQL语句的执行计划,从而实现更高级别的性能调优。通常情况下,Oracle的优化器能够根据...

    Hints优化.pdf

    Oracle Hints是Oracle数据库中一种用于优化SQL查询的工具。它们允许数据库管理员和开发人员提供关于如何执行SQL语句的提示,以此来改善查询性能。Oracle Hints在处理复杂SQL语句或特定类型的数据库操作时尤其有用,...

    Learning to Parse Natural Language with Maximum Entropy Models

    Its machine learning technology, based on the maximum entropy framework, is highly reusable and not specific to the parsing problem, while the linguistic hints that it uses to learn ban be specified ...

    some-hints-on-how-to-encure-deadlock-in-SOA-and-Cloud-Computing

    根据提供的文件信息,本文将对“如何在SOA及云计算环境中预防死锁”这一主题进行深入探讨,并结合《分布式服务导向架构中的死锁避免》这篇硕士论文中的相关内容,阐述死锁的基本概念、产生的原因以及在服务导向架构...

    oracle HINTS用法

    ### Oracle Hints用法详解 Oracle Hints是Oracle数据库中一种非常实用的功能,它允许用户在SQL语句中提供优化器提示,以便更好地控制查询执行计划。这些提示可以帮助数据库优化器选择更有效的路径来执行查询,从而...

    Oracle的hints调整机制介绍

    在Oracle 10g及更高版本中,增加了更多的optimizer hints,以更好地控制查询优化行为。 1. `spread_min_analysis`:这个hint允许用户在编译时忽略某些详细的统计分析,比如电子表格依赖图分析,这在处理大型数据表...

    Oracle 常用 hints 说明

    hints 使用的好的話很好用。在进行sql执行过程中,由于有时候系统自动优化的方式并不是最优的。需要我们手工添加hint来提高查询效率。

    CocosEditor-1.5.1-IDEA13.1

    Scene design you can add labels,label menu items, image label items, sprite from image files and from texture atlas files, create animations from texture atlas. New layers to the scene can be added. ...

    GettingaJob

    Like its earlier editions, this guide covers what software companies and IT departments want their programmers to know and includes plenty of helpful hints to boost your confidence. Looks at current...

    解析Oracle Hints.

    ### 解析Oracle Hints #### 摘要 在现代软件开发过程中,数据库优化成为确保应用程序性能的关键步骤之一。尤其对于大规模系统来说,SQL查询优化的重要性不言而喻。Oracle数据库作为市场上主流的企业级数据库之一,...

    Beginning Visual C_ 2010

    helpful hints, tips, exercises, and full-fledged example code (available for download at p2p.wrox.com) that you will find yourself returning to repeatedly as your career progresses. We pass this ...

    eclipse快捷键(快捷键Eclipse)PDF

    eclipse 快捷键(快捷键Eclipse) 1. commonly used shortcut keys (1) Ctrl+Space Description: content assistant. Provide hints about methods,variables, parameters,Javadoc, etc., Used in a variety of ...

    eclipse菜单解释及中英对照

    ### Eclipse菜单解释及中英对照 #### 一、概述 Eclipse是一款非常强大的开源集成开发环境(Integrated Development Environment,简称IDE),广泛应用于Java程序开发。本文将详细介绍Eclipse中的主要菜单选项及其...

    二维码的实现(Idea与Studio的两种实现)

    本文将详细介绍如何在集成开发环境IntelliJ IDEA(简称Idea)和Android Studio(简称Studio)中实现二维码的生成与识别。 首先,我们需要了解二维码的基本原理。二维码,全称Quick Response Code,是一种二维条形码...

    Illustrated Guide to Python 3

    Treading on Python lets you learn the hints and tips to be Pythonic quickly. Packed with Useful Hints and Tips You'll learn the best practices without wasting time searching or trying to force Python...

Global site tag (gtag.js) - Google Analytics