Intellij IDEA 4 新特性 之 Code Editing (代码编辑)

IntelliJ IDEA 4 强化了代码编辑体验,包括高级代码完成、自动括号匹配、动态模板和快速注释等功能。智能类型完成根据预期表达式类型过滤方法和变量列表,而活体模板则提供了常见代码构造的快捷方式。此外,粘贴代码时会自动缩进,匹配括号高亮显示,并支持代码折叠和双块编辑。还有超级剪贴板功能,允许存储多个剪贴板条目。
摘要由CSDN通过智能技术生成

Editing files with syntax highlighting(文件编辑时语法突出)

IDEA supports the editing of Java™, JSP, XML, HTML files, as well as custom file types that can be easily defined to be recognized and properly highlighted by the editor.

(IDEA支持对 Java™, JSP, XML, HTML等文件的语法突出编辑,即使是自定义的文件,也可以通过代码编辑器来使得其可以被识别和语法突出化)


Advanced Code Completion(先进的代码完成功能)

Code completion

Basic code completion finalizes a class, method, variable name, and Java keywords, plus commonly used names for fields and variables depending on their type. It can be automatically invoked, popping up the available methods and fields list.

Basic代码完成 可以完成对类、方法、变量名和Java关键字的识别,根据不同的类型,可以从自动弹出的列表框中选择已有的方法和域 名)

The SmartType code completion filters the method and variable list to match the expected expression type. It works at the right-hand side of assignments, in variable initializers, return statements and anywhere else where IDEA can guess the expected type.

SmartType代码完成,会根据目前的表达式的类型来对弹出列表框中的方法和变量进行类型匹配,弹出框中右边的就是那些方法变量等的返回类型,IDEA还会罗列出其他你可能用到的类型)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值