当前位置:首页 > > 充电吧
[导读]Editing files with syntax highlighting(文件编辑时语法突出) IDEA supports the editing of Java™, JSP, XML, HTML

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(先进的代码完成功能)

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还会罗列出其他你可能用到的类型)

The Class Name code completion finishes a class name anywhere in the project or libraries independently of imports in the current file.

Class Name 代码完成可以在任何工程、库以及当前独立的文件中帮你完成类名字的书写)


Closing brace auto-insert(复合语句的自动插入(前后括号自动匹配))

Start a code block with an opening curly brace character and press Enter.
The corresponding closing brace is automatically inserted with the indentation specified in your preferences.

(当你键入“{”来开始一组复合语句时,“}”会自动插入进行匹配,插入的方式也可以由你来订制)



Matched brace highlighting(匹配括号的突出显示)

Place the Editor caret just after a closing (or just before an opening) brace or bracket of any type. If it is correctly matched, the matching pair highlights with light blue. If there is no matching bracket, the unpaired bracket highlights as a compile error. (You can change the default highlight colors in your configuration).

(当光标移动至括号时,不管是左括号还是右括号,如果它可以正确匹配,他将会以浅蓝色突出显示,如果没有与之相匹配的括号,则将会有错误提示,当然,突出的颜色也可以设置)


Pasted text auto-indent(粘贴代码自动缩进)

Paste a block of text into your code and IDEA automatically indents it to fit the new location.

(当粘贴一段代码到IDEA代码编辑中时,他会自动缩进到合适的位置)


Live Templates(动态模板)

Live Templates provide a fast way to code many typical constructs. Just type the Live Template name, press Tab, and the relevant code... simple or highly complex... is written to your file instantly. When you insert code from a Live Template, IDEA analyzes your existing code and suggests correct values for the template’s variables. Now you can apply Live Templates not only at a particular caret position, but for selected blocks of code/text as well.

(动态模板提供了一些典型代码的快速输入,只需要输入动态模板的名字,按TAB,不论是简单的还是复杂的代码都会立刻完成。动态模板还会自动分析现有代码,插入合适的变量名,动态模板的使用不仅在光标位置,他还适用于被选中的文本代码)


Express code commenting(快速代码注释)

Use a single keystroke to quickly comment/uncomment a selected line or block with either block (/*…*/) or line (//…) comments. Comments insert at the first column, or at the indentation level, depending on your preferences.

(使用一个键就可以使选中的代码进行注释或反注释,注释的插入位置可以设置)


Popup parameter info(参数弹出提示)

When coding a new method call, a tooltip showing the target method’s signature pops up after you type the opening “(” character or invoke code completion features. The parameter highlighted in bold is the one on which the caret is currently positioned. You can control the popup interval or disable the popup completely in Completion settings.

(当输入一个新的方法时,在输入“(”后就会有这个方法参数的弹出提示,当前参数将会以粗体显示,你可以在Completion settings中控制是否弹出,和弹出延时)



Code folding(代码折叠)

Easily “fold” and “unfold” methods, Javadoc comments, or blocks of import statements, putting distracting detail out of your way. Fold/unfold a single block or everything in the file at once with a single keystroke.

(你可以将JavaDoc注释、方法体、或者一系列的import语句进行折叠,隐藏他们的细节,只需点击一下,就可以打开或合上他们)

Mouse over «folded» code icons to pop up the hidden detail for quick examination.

(将鼠标移至到合上的代码时,隐藏的内容会暂时显示出来)

Split-pane editor(双块代码编辑)

Split the Editor into two half panes to work in two different places in the same file simultaneously. Move the pane splitters to adjust the size of the panes.

(通过分割栏,可以将代码分成两部分独立工作,拖动分割栏可以调整大小)



Clipboard stacking(超级剪贴版)

Now store multiple clipboard entries and access them with a single shortcut. Customize the number of entries that can be stored in the clipboard stack.

(拥有可以储存多次剪贴内容的剪贴版,记录的剪贴内容数也可以设置)



本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除。
换一批
延伸阅读

LED驱动电源的输入包括高压工频交流(即市电)、低压直流、高压直流、低压高频交流(如电子变压器的输出)等。

关键字: 驱动电源

在工业自动化蓬勃发展的当下,工业电机作为核心动力设备,其驱动电源的性能直接关系到整个系统的稳定性和可靠性。其中,反电动势抑制与过流保护是驱动电源设计中至关重要的两个环节,集成化方案的设计成为提升电机驱动性能的关键。

关键字: 工业电机 驱动电源

LED 驱动电源作为 LED 照明系统的 “心脏”,其稳定性直接决定了整个照明设备的使用寿命。然而,在实际应用中,LED 驱动电源易损坏的问题却十分常见,不仅增加了维护成本,还影响了用户体验。要解决这一问题,需从设计、生...

关键字: 驱动电源 照明系统 散热

根据LED驱动电源的公式,电感内电流波动大小和电感值成反比,输出纹波和输出电容值成反比。所以加大电感值和输出电容值可以减小纹波。

关键字: LED 设计 驱动电源

电动汽车(EV)作为新能源汽车的重要代表,正逐渐成为全球汽车产业的重要发展方向。电动汽车的核心技术之一是电机驱动控制系统,而绝缘栅双极型晶体管(IGBT)作为电机驱动系统中的关键元件,其性能直接影响到电动汽车的动力性能和...

关键字: 电动汽车 新能源 驱动电源

在现代城市建设中,街道及停车场照明作为基础设施的重要组成部分,其质量和效率直接关系到城市的公共安全、居民生活质量和能源利用效率。随着科技的进步,高亮度白光发光二极管(LED)因其独特的优势逐渐取代传统光源,成为大功率区域...

关键字: 发光二极管 驱动电源 LED

LED通用照明设计工程师会遇到许多挑战,如功率密度、功率因数校正(PFC)、空间受限和可靠性等。

关键字: LED 驱动电源 功率因数校正

在LED照明技术日益普及的今天,LED驱动电源的电磁干扰(EMI)问题成为了一个不可忽视的挑战。电磁干扰不仅会影响LED灯具的正常工作,还可能对周围电子设备造成不利影响,甚至引发系统故障。因此,采取有效的硬件措施来解决L...

关键字: LED照明技术 电磁干扰 驱动电源

开关电源具有效率高的特性,而且开关电源的变压器体积比串联稳压型电源的要小得多,电源电路比较整洁,整机重量也有所下降,所以,现在的LED驱动电源

关键字: LED 驱动电源 开关电源

LED驱动电源是把电源供应转换为特定的电压电流以驱动LED发光的电压转换器,通常情况下:LED驱动电源的输入包括高压工频交流(即市电)、低压直流、高压直流、低压高频交流(如电子变压器的输出)等。

关键字: LED 隧道灯 驱动电源
关闭