Intellij Idea开发基础操作汇总

idea基本设置

调整字体大小:
快捷键(ctrl+alt+s)调出设置页
-菜单栏-
Settings–>Appearance&Behavior–>Appearance–>[x]Override defaults fonts by (not recommended)–>Name/Size
-控制台-
Settings–>Console Font–>[x]Use console font instead of the default–>Font/Size
-编辑区-
Settings–>Editor–>Color Scheme–>Color Scheme Font-[x]Use color scheme font instead of the default–>Name/Size
-鼠标调节编辑区字体大小:ctrl+鼠标滚动-
Setting–>Edit–>General-Change font size with Ctrl+Mouse Wheel

调整编码UTF-8:
Settings–>搜encode–>Default encoding–>UTF-8

JDK设置:
Project Structure–>Project–>Project SDK

菜单与编辑页联动:
菜单右上角齿轮–>Autoscroll to Source和Autoscroll from source

自动导入包(自动删):
Settings–>搜Auto Import–>[x]Optimize imports on the fly (for current project)

显示行号:
Settings–>Editor–>General–>Appearance–>Show line numbers

开发中技能

复制:
复制一行:光标放在一行任意位置,Ctrl+C
复制多行:选中需要复制的多行,Ctrl+D
复制菜单栏内类名:菜单栏选中类名,Ctrl+C
复制历史:Ctrl_Shif+V,选中记录后双击,在光标处粘贴

上下移动一行活多行:
Alt+Shift+上/下

代码间切换:
Alt+左右
Ctrl+E

内容查找或替换:
Ctrl+Shif+R

查找:
查找文件:Ctrl+Shif+N
搜索任何操作:Ctrl+Shif+A
万能查找:两次Shift键

你可能感兴趣的:(小case,intellij-idea,java)