首页 > 其他分享 >IntelliJ IDEA and Eclipse Shortcuts

IntelliJ IDEA and Eclipse Shortcuts

时间:2022-11-01 14:23:29浏览次数:64  
标签:IntelliJ ctrl Shortcuts shift Eclipse IDEA alt

https://www.cloudflight.io/en/blog/intellij-idea-and-eclipse-shortcuts/

 

After around seven years of exclusively using Eclipse for Java development I recently got the chance to work on a project where IntelliJ IDEA is the standard editor. All of a sudden my tried and tested Eclipse keyboard shortcuts didn’t work any more. I’m still in the process of learning the IntelliJ Shortcuts but here are my favourites up to now (with equivalent Eclipse shortcuts). This may be of help to anyone else switching over from Eclipse to IntelliJ. Of course, there is an IntelliJ Plugin available which makes IntelliJ IDEA behave like Eclipse (same shortcuts and compiler behaviour) but why do that?

In the table below, in some cases, the shortcuts do not map 1:1 but they achieve the same effect.

Eclipse IntelliJ IDEA Description
F4 ctrl+h show the type hierarchy
ctrl+alt+g ctrl+alt+F7 find usages
ctrl+shift+u ctrl+f7 finds the usages in the same file
alt+shift+r shift+F6 rename
ctrl+shift+r ctrl+shift+N find file / open resource
ctrl+shift+x, j ctrl+shift+F10 run (java program)
ctrl+shift+o ctrl+alt+o organize imports
ctrl+o ctrl+F12 show current file structure / outline
ctrl+shift+m ctrl+alt+V create local variable refactoring
syso ctrl+space sout ctrj+j System.out.println(“”)
alt + up/down ctrl + shift + up/down move lines
ctrl + d ctrl + y delete current line
??? alt + h show subversion history
ctrl + h ctrl + shift + f search (find in path)
“semi” set in window-> preferences ctrl + shift + enter if I want to add the semi-colon at the end of a statement
ctrl + 1 or ctrl + shift + l ctrl + alt + v introduce local variable
alt + shift + s alt + insert generate getters / setters
ctrl + shift + f ctrl + alt + l format code
ctrl + y ctrl + shift + z redo
ctrl + shift + c ctrl + / comment out lines (my own IDEA shortcut definition for comment/uncomment on german keyboard layout on laptop: ctrl + shift + y)
ctrl + alt + h ctrl + alt + h (same!) show call hierarchy
none ? ctrl + alt + f7 to jump to one of the callers of a method
ctrl + shift + i alt + f8 evaluate expression (in debugger)
F3 ctrl + b go to declaration (e.g. go to method)
ctrl + l ctrl + g go to line

 

One other thing I didn’t realise at first is that the ‘Scroll to Source’ button in IntelliJ IDEA is basically the same as the ‘Link with Editor’ button in Eclipse.

 

标签:IntelliJ,ctrl,Shortcuts,shift,Eclipse,IDEA,alt
From: https://www.cnblogs.com/kungfupanda/p/16847528.html

相关文章

  • IntelliJ IDEA 的安装、配置与使用
    一、IntelliJIDEA介绍–EclipseIBM1.JetBrains公司介绍一、IntelliJIDEA介绍–EclipseIBM1.JetBrains公司介绍IDEA(https://www.jetbrains.com/idea/)是JetBra......
  • 如何将MyEclipse项目导入eclipse
    我们经常会在网上下载一些开源项目,或者从别的地方迁移一些项目进来,但经常会发现导入后各种报错。这是初学java肯定会遇到的问题,本文对一些常见的处理方案做一个总结。(本文将......
  • Installation Together12 with Eclipse 4.2.2
    (Installation1)downloadeclipse4.2.2:eclipse-java-juno-SR2-x86_64.-v4.2.2.zip ,解压到d:\java\目录2)downloadtogether12:together12_5_site.zip ,不需要......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......
  • 使用MyEclipse2022-1搭建Maven版本的Struts2-3项目
    MyEclipse2022.1下载推荐直接到官网下载,不要去其他地方下载,避免一些被加载了病毒的安装包。备用下载与破解包下载:链接:https://pan.baidu.com/s/1gPlSLEJa1jhpQhrvWh......