idea 字体行间距_idea

1. 如何让磁盘java文件不关联idea工具

file--->setting--->editor--->file types

image.png

2. 删除module

此时是从工程中删除,并未从磁盘上删除,还可以在添加进来的:

image.png

此时在该module上右键--->delete会真的删除module

image.png

3. 常用配置

image.png

1.设置主题

image.png

image.png

设置自动导包

image.png

Add unambiguous imports on the fly:自动导入不明确的结构

Optimize imports on the fly:自动帮我们优化导入的包

设置行号和方法间的间隔

image.png

image.png

设置取消单行显示 tabs 的操作

image.png

在打开很多文件的时候,IntelliJ IDEA 默认是把所有打开的文

件名 Tab 单行显示的。但是我个人现在的习惯是使用多行,多行效率比单行高

字体设置【设置默认 的 字体、字体大小、字体行间距】

image.png

6. 修改代码 中 注释的字体颜色

image.png

Doc Comment – Text:修改文档注释的字体颜色

Block comment:修改多行注释的字体颜色

Line comment:修改当行注释的字体颜色

修改类头的文档注释信息

image.png

常用的预设置的变量:

${PACKAGE_NAME} - the name of the target package where the new class or interface will be created.

${PROJECT_NAME} - the name of the current project.

${FILE_NAME} - the name of the PHP file that will be created.

${NAME} - the name of the new file which you specify in the New File dialog box during the file creation.

${USER} - the login name of the current user.

${DATE} - the current system date.

${TIME} - the current system time.

${YEAR} - the current year.

${MONTH} - the current month.

${DAY} - the current day of the month.

${HOUR} - the current hour.

${MINUTE} - the current minute.

${PRODUCT_NAME} - the name of the IDE in which the file will be created.

${MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.

${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.

设置项目文件编码

image.png

Transparent native-to-ascii conversion 主要用于转换 ascii,一般都要勾选,

不然 Properties 文件中的注释显示的都不会是中文

设置当前源代码的编码在idea右下角的地方。

设置自动编译

image.png

Intellij Idea 默认状态为不自动编译状态,Eclipse 默认为自动编译

设置为省电模式

image.png

IntelliJ IDEA 有一种叫做 省电模式 的状态,开启这种模式之后

IntelliJ IDEA 会关掉代码检查和代码提示等功能。所以一般也可认为这是一种 阅

读模式,如果你在开发过程中遇到突然代码文件不能进行检查和提示,可以来看

看这里是否有开启该功能

设置水平或垂直对齐

image.png

4. 设置快捷键

设置为eclipse快捷键

image.png

5. 常用模板

Postfix Completion 默认如下

image.png

Live Templates 默认 如下:

image.png

二者的区别:Live Templates 可以自定义,而 Postfix Completion 不可以。同时,

有些操作二者都提供了模板,Postfix Templates 较 Live Templates 能快 0.01 秒

6.创建web project或module

创建web的第一种方式:

image.png

image.png

创建web的第二种方式:

image.png

添加web目录使其变成web工程

右键项目,点击 Add framework support...按钮

image.png

如果想创建module,方法类似

7.配置tomcat

image.png

image.png

image.png

部署应用

image.png

8. maven的配置

设置maven的两种方式:

第一种:只对当前项目起作用:

直接从setting设置:

如果你在idea只是简单的setting再搜索maven来导入maven仓库的话,这样做只是在当前的项目有效果。当你下次创建的时候,你还要继续原来的操作;

第二种:对后面新建的项目都起作用:

image.png

image.png

9. git的配置使用

image.png

image.png

10.svn的配置使用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值