Usages for IntelliJ & Eclipse
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 |
- 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:
- 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.
In the Reformat File dialog, specify options for the reformatting and click Run.
- In the editor of the currently opened file, press ⌥⇧⌘L.
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
$ ./jad -sjava BasicColor.class
java -jar EnumLevel.class
Usages for IntelliJ & Eclipse的更多相关文章
- intellij,eclipse,vs2013快捷键
如何跳转到上一次编辑的位置,即如何跳到上一个光标所在的位置? intellij: Command+Alt+左方向键:上一光标的位置 Command+Alt+右方向键:下一光标的位置 定位到最后编辑位置 ...
- 使用IntelliJ/Eclipse生成类图
IntelliJ可以安装一个免费的pugins - Code Iris. PlantUML 在Eclipse中 - ObjectAidPapyrusEclipse Modeling Tools 查看原 ...
- 项目编码规范(Ali)
一.研发流程规范 二.SQL编码规范 数据库命名规范:数据库名一律小写,必须以字母开头.库名包含多个单词的,以下划线“_”分隔.如果采用分库方案,分库编号从“0”开始,用“0”左补齐为四位. 表名规范 ...
- java后台技术
本文旨在梳理服务端开发技术栈,希望帮助后端开发同学更全面了解Java服务端主要涉及的知识点 1. 语言相关 1.1 Java 核心知识点 Java的类加载机制 JVM相关:JVM内存模型和结构,GC原 ...
- [转帖]2018年JVM生态系统报告出炉
很多未解之谜终于有答案了——2018年JVM生态系统报告出炉 https://blog.csdn.net/hollis_chuang/article/details/84134298 2018年1 ...
- Flink架构,源码及debug
序 工作中用Flink做批量和流式处理有段时间了,感觉只看Flink文档是对Flink ProgramRuntime的细节描述不是很多, 程序员还是看代码最简单和有效.所以想写点东西,记录一下,如果能 ...
- 【转】Maven3把命令行创建的web工程转成Eclipse和IntelliJ Idea的工程
参考链接:http://blog.sina.com.cn/s/blog_4f925fc30102ed5b.html 大前提:在执行mvn eclipse:eclipse命令之前一定要先存在一个含有po ...
- 从Eclipse转移到IntelliJ IDEA一点心得
http://www.ituring.com.cn/article/37792 本人使用IntelliJ IDEA其实并不太久,用了这段时间以后,觉得的确很是好用.刚刚从Eclipse转过来的很多人开 ...
- IntelliJ IDEA 使用说明(For Eclipse user)
IDEA和Eclipse主要在用户界面,编译方法和快捷键上有所差别. 1. 用户界面 1.1 No workspace IDEA 的Project相当于Eclipse的workspace,具体概念对比 ...
随机推荐
- Andrew Ng机器学习课程10补充
Andrew Ng机器学习课程10补充 VC dimension 讲到了如果通过最小化训练误差,使用一个具有d个参数的hypothesis class进行学习,为了学习好,一般需要参数d的线性关系个训 ...
- element组件 MessageBox不能显示确认和取消按钮,记录正确使用方法!
这里是局部引入 调用方式:
- 一段话让你理解vuex的工作模式!
vuex 个人理解:管理各组件公共状态的vue插件,也是个组件相互通信的插件. 组成:1.State:状态树. 2.Getters:操作state. 3.Mutation:唯一改变state状态的操作 ...
- SQL优化——select
MYSQL优化实施方案:https://www.cnblogs.com/clsn/p/8214048.html 对查询时经常用到的字段建立索引,如包含多个也可以构建复合索引,建立索引之后需要注意的一点 ...
- 《ucore lab5》实验报告
资源 ucore在线实验指导书 我的ucore实验代码 练习1: 加载应用程序并执行(需要编码) 题目 do_execv函数调用load_icode(位于kern/process/proc.c中) 来 ...
- [转帖]CentOS 7 安装 GlusterFS
CentOS 7 安装 GlusterFS https://www.cnblogs.com/jicki/p/5801712.html 改天测试一下 我一直没有搞这一块呢. CentOS 7 Glu ...
- SpringMVC获取参数的几种方式
前言: 年末了,忙了一年了却发现系统的整理的东西很少,一些基础的东西都未做整理,这里就将它随便整理一下,增加一些印象,当然在网上看到一些好的资料也会整理下来以备后用.今天整理一下springMVC获取 ...
- C++枚举类型教案
一.枚举类型的应用场景 只需要将需要的变量值一一列举出来,便构成一个枚举类型. 二.枚举类型的定义 ·定义方式: enum 枚举类型名字{枚举常量表}: ·关键字enum:说明接下来定义的是一个枚举类 ...
- TZOJ5201: 数字游戏
#include<stdio.h> int main() { ,j=; scanf("%I64d %I64d %I64d",&n,&k,&t); ...
- S04_CH03_QSPI烧写LINUX系统
S04_CH03_QSPI烧写LINUX系统 3.1概述 3.2搭建硬件系统 本章硬件工程还是使用<S04_CH01_搭建工程移植LINUX/测试EMMC/VGA>所搭建的VIVADO工程 ...