IntelliJ

⌘E

Select a recently opened file from the list.

⌘/ (left command + /)
⌥⌘/ (right command + /)

Add/remove line or block comment

Comment out a line or block of code.

⌘O
⇧⌘O
⌥⌘O

Find class, file, or symbol

Alt + ⌘ +left arrow go back to previous caret (text cursor) position
 
⌘7   show the  Structureof Source file
 
  • ctrl+Y. Delete current line.
  • ctrl+D. Duplicate current line or selected block.
  • ***************
  • Configuring Lombok on IntelliJ - Installation of Lombok plugin
  • http://ganeshtiwaridotcomdotnp.blogspot.com/2016/03/configuring-lombok-on-intellij.html
  • Using IDE built-in plugin system on MacOs:
    • Preferences > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
  • ** Use proxy to download Lombok
  • 3) Enable Annotation Processing
     In your project: Click Preferences, "Build, Execution, Deployment", Compiler, Annotation Processors. Click Enable Annotation Processing
  • ***************
  • Reformatting the code of the current file

    To reformat code for the current file, follow these steps:

    1. In the editor of the currently opened file, press ⌥⇧⌘L.

      Note that if you select Code | Reformat Code from the main menu or press ⌥⌘L, RubyMine will try to reformat the source code automatically without opening the Reformat File dialog.

    2. In the Reformat File dialog, specify options for the reformatting and click Run.

 
 
Eclipse
 
Shortcuts:
 
type "syso", followed by CTRL + SPACE. Eclipse will magically fill out the full System.out.println() function call and place your cursor in between the parentheses
 
Eclipse Plugin:
 
— TM terminal (previously named TCF terminal)
Installed from Help -> Eclipse Marketplace
Type Ctrl + Alt + T 
 

System.out.println (“sysout” and Ctrl + Space)

When working with console applications, you’ll need to use System.out.println() for printing messages. But because this is so cumbersome, Eclipse has a quick shortcut for you: type “sysout” (without the quotes), then hit Ctrl + Space.

Search Entire Project (Ctrl + H)

When working on large codebases, it’s easy to forget where you declared certain classes, methods, or variables. Instead of wasting time combing through directories by hand, use the Search Entire Project prompt with the Ctrl + H shortcut.

the full list of shortcuts can be displayed from anywhere via Ctrl+Shift+L.

you are on Mac, then just press key: Command + Shift + L.

Enabling Assertions in Eclipse

Per-Project Settings

In Eclipse, select "Run » Run Configurations..." from the menu bar. This will open up a dialog window. If you do not already have a run configuration for the current file, go ahead and create one. Otherwise, select the "Arguments" tab and enter -ea in the "VM Arguments" text box as follows:

Eclipse-Wide Settings

If you always want assertions enabled for any Java project you run in Eclipse, you have to change the settings for your installed JREs. Go to the Eclipse Preferences window (either "Window » Preferences" or "Eclipse » Preferences" from the menu bar). Open the "Java" submenu, and select "Installed JREs". You should see something similar to:

 
 

Decompile Java

 
Using jad:

$ ./jad -sjava BasicColor.class

 
JD-Eclipse

 
JD command line:
 

java -jar EnumLevel.class

Usages for IntelliJ & Eclipse的更多相关文章

  1. intellij,eclipse,vs2013快捷键

    如何跳转到上一次编辑的位置,即如何跳到上一个光标所在的位置? intellij: Command+Alt+左方向键:上一光标的位置 Command+Alt+右方向键:下一光标的位置 定位到最后编辑位置 ...

  2. 使用IntelliJ/Eclipse生成类图

    IntelliJ可以安装一个免费的pugins - Code Iris. PlantUML 在Eclipse中 - ObjectAidPapyrusEclipse Modeling Tools 查看原 ...

  3. 项目编码规范(Ali)

    一.研发流程规范 二.SQL编码规范 数据库命名规范:数据库名一律小写,必须以字母开头.库名包含多个单词的,以下划线“_”分隔.如果采用分库方案,分库编号从“0”开始,用“0”左补齐为四位. 表名规范 ...

  4. java后台技术

    本文旨在梳理服务端开发技术栈,希望帮助后端开发同学更全面了解Java服务端主要涉及的知识点 1. 语言相关 1.1 Java 核心知识点 Java的类加载机制 JVM相关:JVM内存模型和结构,GC原 ...

  5. [转帖]2018年JVM生态系统报告出炉

    很多未解之谜终于有答案了——2018年JVM生态系统报告出炉 https://blog.csdn.net/hollis_chuang/article/details/84134298   2018年1 ...

  6. Flink架构,源码及debug

    序 工作中用Flink做批量和流式处理有段时间了,感觉只看Flink文档是对Flink ProgramRuntime的细节描述不是很多, 程序员还是看代码最简单和有效.所以想写点东西,记录一下,如果能 ...

  7. 【转】Maven3把命令行创建的web工程转成Eclipse和IntelliJ Idea的工程

    参考链接:http://blog.sina.com.cn/s/blog_4f925fc30102ed5b.html 大前提:在执行mvn eclipse:eclipse命令之前一定要先存在一个含有po ...

  8. 从Eclipse转移到IntelliJ IDEA一点心得

    http://www.ituring.com.cn/article/37792 本人使用IntelliJ IDEA其实并不太久,用了这段时间以后,觉得的确很是好用.刚刚从Eclipse转过来的很多人开 ...

  9. IntelliJ IDEA 使用说明(For Eclipse user)

    IDEA和Eclipse主要在用户界面,编译方法和快捷键上有所差别. 1. 用户界面 1.1 No workspace IDEA 的Project相当于Eclipse的workspace,具体概念对比 ...

随机推荐

  1. 【kubernetes 自带监控】 container级别cadvisor+kubelet,集群级别apiserver

    apiserver https://feisky.gitbooks.io/kubernetes/components/apiserver.html kube-apiserver 支持同时提供 http ...

  2. HTML布局排版5 测试某段html页面1

    除了div,常见的还有用table布局,这里直接用前面博文的页头页尾,如下面的页面的部分,是个简单的table.该页面样式,如果拖动浏览器,可以看到table和文本框总是居中,但是文本框下方那两个按钮 ...

  3. html测试页LODOP的内容反复进入打印设计

    打印设计是给开发人员使用的工具,用打印设计辅助开发后,打印设计的界面本身的菜单下,可以生成代码,然后把对应的内容信息补充上,拷贝到自己的页面的JS里或存起来,作为模版使用. 也可以关闭打印设计,可返回 ...

  4. easyui前台改变datagrid某单元格的值

    有时候前台完成某个操作后要修改datagrid的值, 也许这个datagrid是没有保存的, 所以要修改后才能传递到后台; 也许要其他操作过后才需请求后台; 这些情况都需要前台对datagrid的单元 ...

  5. CSS网站框架及样式命名规范

    CSS网站框架 复位:reset.css 基础:base.css 或 basic.css (字体大小.颜色.背景.行高.列表样式.按钮样式.表格样式等等) 布局:layout.css (非结构的布局) ...

  6. 【ARTS】01_46_左耳听风-201900923~201900929

    ARTS: Algrothm: leetcode算法题目 Review: 阅读并且点评一篇英文技术文章 Tip/Techni: 学习一个技术技巧 Share: 分享一篇有观点和思考的技术文章 Algo ...

  7. Arcgis javascript api 动态图层自图层可见性设置

    Arcgis javascript api 动态图层自图层可见性设置 子图层管理 rest服务 sublayers sublayer ArcGISDynamicMapServiceLayer 本文主要 ...

  8. 推荐linux运维必备的几本书

    首先,<鸟哥的linux私房菜> 鸟哥 其次,<linux就该这么学> 刘瑞版 然后,<CentOS linux系统运维> 张祥琳版 最后,<CentOS运维 ...

  9. GATK4注意事项

    近期在测试多样品的WES的过程中发现用HC得到gvcf之后,合并多个样品的gvcf文件的过程中,使用CombineGVCFs的过程中很慢,发现官网推荐使用GenomicsDBImport 用法如下: ...

  10. VMware中安装Ubntu

    "懦夫没有能力去表现爱:爱是勇者的特权"----甘地 原文请见: https://blog.csdn.net/wumumang/article/details/54099997 一 ...