www.久久久久|狼友网站av天堂|精品国产无码a片|一级av色欲av|91在线播放视频|亚洲无码主播在线|国产精品草久在线|明星AV网站在线|污污内射久久一区|婷婷综合视频网站

當(dāng)前位置:首頁 > 芯聞號(hào) > 充電吧
[導(dǎo)讀]Intelligent error highlighting(智能突出顯示錯(cuò)誤)All common syntax errors, as well as all other errors that w

Intelligent error highlighting(智能突出顯示錯(cuò)誤)

All common syntax errors, as well as all other errors that would be detected during compilation, are highlighted in the source code so you do not need to compile your code in order to find all your mistakes. Each error is highlighted in the editor and has the corresponding red link on the right gutter area for easy navigation to the erroneous places, which is especially useful when working with large files.

所有常見的語法錯(cuò)誤以及其他一些可以被發(fā)現(xiàn)的編輯錯(cuò)誤,都會(huì)在源代碼里被突出顯示。這意味著,你不用編譯程序就可以發(fā)現(xiàn)你所有的錯(cuò)誤。錯(cuò)誤突出會(huì)用紅色的波浪下劃線標(biāo)示,你可以輕易的找到它,這個(gè)功能在大的源文件編輯時(shí)尤為突出。



JavaDoc error highlighting(JavaDoc錯(cuò)誤突出)

IDEA knows general javadoc rules, such as structure and syntax, and will detect any common inconsistencies found in your javadoc comments, e.g. wrong parameter references, return attributes in the field or void method comments, etc.
Having found an unknown javadoc tag, IDEA will suggests that you add this tag to the known tags list, so that you never get an error or warning indications about it.

IDEA曉得一般的JavaDoc一些關(guān)于結(jié)構(gòu)和語法的規(guī)則,而且會(huì)發(fā)現(xiàn)一些在你的JavaDoc中相矛盾的地方,比如,不一致的參數(shù)申明,返回局部變量或沒有返回值方法的注釋等等。當(dāng)發(fā)現(xiàn)一個(gè)未知的JavaDoc Tag 時(shí),IDEA會(huì)提醒你將這個(gè)Tag加入到已知Tag列表中,這樣就再也看不到關(guān)于這個(gè)Tag的錯(cuò)誤和警告提示了。


Detecting deprecated symbols(發(fā)現(xiàn)不合法的標(biāo)識(shí)符)

If any deprecated code is used in any class or interface, IDEA will recognize it and highlight the corresponding statements directly in the editor.

如果有任何不合法的代碼在你得class或interface里,IDEA會(huì)找出它,并在編輯器里直接標(biāo)記出它。


Highlighting unused imports, throws declarations and other unused symbols(突出顯示沒有被使用的import和 throw聲明以及其他沒有使用的標(biāo)識(shí)符)

IDEA will point out all redundant import statements, throws declarations and other unused symbols (like variables and methods), and will highlight them in the editor with the corresponding links on the right gutter area for easier navigation. More information on other code analysis features can be found here.

IDEA將會(huì)指出多余的import和throw聲明,以及其他的多余的方法和變量標(biāo)識(shí)符,并將在編輯器里突出顯示他們,并給出相應(yīng)的建議,你可以輕易找到它們。你也可以從提示意見里獲得更過的相關(guān)信息。


Import Assistant - helps to automatically insert import statements while typing code, and detects non-imported classes found in pasted blocks of code(Import助手——在編輯代碼時(shí)幫你自動(dòng)插入import聲明,并自動(dòng)找出你粘貼代碼時(shí)沒有導(dǎo)出的class)

When you use the name of a class from anywhere in a project library, but the class has not been imported into the current file, a hint with the suggestion to import the class pops up over the text. Pressing Alt + Enter inserts the import statement. Moreover, when you copy a block of text from one file and paste it into another, IDEA automatically detects all the classes that are used inside the copied block but have not been imported to the destination file. It then shows a list of all such classes and allows you to select classes you want to import into the new file.

當(dāng)你隨便使用一個(gè)package里的class時(shí),而且這個(gè)class沒有在當(dāng)前文件中聲明時(shí),就會(huì)有一個(gè)提示來建議你import一些有這個(gè)class聲明的package,你只需按下Alt + Enter就會(huì)import相應(yīng)package了。當(dāng)然,這個(gè)功能也會(huì)在你粘貼代碼時(shí)起作用,他會(huì)提示出所有需要import的package。IDEA還會(huì)給出一個(gè)列表讓你選擇呢?




Intention actions(意圖識(shí)別)

When you are typing your source code, know that IDEA is always one step ahead of you. For example, if you assign a value to a variable that represents an instance of one of its ancestors, IDEA will immediately interpret your intention as wanting either to cast the ancestor type to the variable type or to define the type of variable the same as the ancestor. A light bulb will appear suggesting that you perform one of these two operations. Also you can start using a method before it has been declared. When this occurs, IDEA’s light bulb popup will appear suggesting you create a new method from its usage. If you accept the suggestion, the new method will be created in the corresponding class. More features related to automatic code generation in IDEA are described here.

當(dāng)你在輸入源代碼時(shí),IDEA會(huì)知道你下一步將會(huì)做什么。例如,當(dāng)你成聲明一個(gè)繼承于某個(gè)父類的變量時(shí),IDEA會(huì)認(rèn)為是是不是需要繼承一些父類的聲明。有一個(gè)小燈泡出現(xiàn)會(huì)提示你完成這些操作。當(dāng)你寫一個(gè)方法時(shí)也是這樣。如果你接受了“小燈泡”的建議,你需一點(diǎn),他就會(huì)自動(dòng)幫你完成。(意譯,可能有出入,但易于理解)



Visual indication of overriding/overriden and implementing/implemented methods(醒目的指出override和implement的方法)

Special signs ( and ) on the left gutter area of the editor indicate that the current method overrides or implements the corresponding method of an ancestor class/interface. Moving the mouse to one of these symbols will bring up a tooltip with the base method details. If you click the symbol, the corresponding class/interface will be immediately opened in the editor, with the caret automatically positioned at the base method.

When icons or are shown, it means that the method is overriden or implemented in inheriting classes. Pressing the icon will open a lookup list with these classes, for selecting the desired one to open at the corresponding method.

?用符號(hào)(?和 ) 在代碼的左邊標(biāo)示出當(dāng)前方法是否是重載或?qū)崿F(xiàn)了父類或接口的相應(yīng)方法. 移動(dòng)鼠標(biāo)到這些符號(hào)上,將會(huì)顯示出父類是顯得的詳細(xì)細(xì)節(jié)。如果你點(diǎn)擊鼠標(biāo), 相應(yīng)的父類實(shí)現(xiàn)就會(huì)出現(xiàn)在編輯器里,并自動(dòng)定位到那個(gè)方法上。

當(dāng)符號(hào)??或 出現(xiàn)時(shí),就意味著這個(gè)方法需要重載或?qū)崿F(xiàn)與父類的方法。?點(diǎn)擊鼠標(biāo)就會(huì)彈出相應(yīng)的列表讓你在其中選擇一個(gè)方法。



本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請(qǐng)聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請(qǐng)及時(shí)聯(lián)系本站刪除。
換一批
延伸閱讀

9月2日消息,不造車的華為或?qū)⒋呱龈蟮莫?dú)角獸公司,隨著阿維塔和賽力斯的入局,華為引望愈發(fā)顯得引人矚目。

關(guān)鍵字: 阿維塔 塞力斯 華為

倫敦2024年8月29日 /美通社/ -- 英國汽車技術(shù)公司SODA.Auto推出其旗艦產(chǎn)品SODA V,這是全球首款涵蓋汽車工程師從創(chuàng)意到認(rèn)證的所有需求的工具,可用于創(chuàng)建軟件定義汽車。 SODA V工具的開發(fā)耗時(shí)1.5...

關(guān)鍵字: 汽車 人工智能 智能驅(qū)動(dòng) BSP

北京2024年8月28日 /美通社/ -- 越來越多用戶希望企業(yè)業(yè)務(wù)能7×24不間斷運(yùn)行,同時(shí)企業(yè)卻面臨越來越多業(yè)務(wù)中斷的風(fēng)險(xiǎn),如企業(yè)系統(tǒng)復(fù)雜性的增加,頻繁的功能更新和發(fā)布等。如何確保業(yè)務(wù)連續(xù)性,提升韌性,成...

關(guān)鍵字: 亞馬遜 解密 控制平面 BSP

8月30日消息,據(jù)媒體報(bào)道,騰訊和網(wǎng)易近期正在縮減他們對(duì)日本游戲市場(chǎng)的投資。

關(guān)鍵字: 騰訊 編碼器 CPU

8月28日消息,今天上午,2024中國國際大數(shù)據(jù)產(chǎn)業(yè)博覽會(huì)開幕式在貴陽舉行,華為董事、質(zhì)量流程IT總裁陶景文發(fā)表了演講。

關(guān)鍵字: 華為 12nm EDA 半導(dǎo)體

8月28日消息,在2024中國國際大數(shù)據(jù)產(chǎn)業(yè)博覽會(huì)上,華為常務(wù)董事、華為云CEO張平安發(fā)表演講稱,數(shù)字世界的話語權(quán)最終是由生態(tài)的繁榮決定的。

關(guān)鍵字: 華為 12nm 手機(jī) 衛(wèi)星通信

要點(diǎn): 有效應(yīng)對(duì)環(huán)境變化,經(jīng)營(yíng)業(yè)績(jī)穩(wěn)中有升 落實(shí)提質(zhì)增效舉措,毛利潤(rùn)率延續(xù)升勢(shì) 戰(zhàn)略布局成效顯著,戰(zhàn)新業(yè)務(wù)引領(lǐng)增長(zhǎng) 以科技創(chuàng)新為引領(lǐng),提升企業(yè)核心競(jìng)爭(zhēng)力 堅(jiān)持高質(zhì)量發(fā)展策略,塑強(qiáng)核心競(jìng)爭(zhēng)優(yōu)勢(shì)...

關(guān)鍵字: 通信 BSP 電信運(yùn)營(yíng)商 數(shù)字經(jīng)濟(jì)

北京2024年8月27日 /美通社/ -- 8月21日,由中央廣播電視總臺(tái)與中國電影電視技術(shù)學(xué)會(huì)聯(lián)合牽頭組建的NVI技術(shù)創(chuàng)新聯(lián)盟在BIRTV2024超高清全產(chǎn)業(yè)鏈發(fā)展研討會(huì)上宣布正式成立。 活動(dòng)現(xiàn)場(chǎng) NVI技術(shù)創(chuàng)新聯(lián)...

關(guān)鍵字: VI 傳輸協(xié)議 音頻 BSP

北京2024年8月27日 /美通社/ -- 在8月23日舉辦的2024年長(zhǎng)三角生態(tài)綠色一體化發(fā)展示范區(qū)聯(lián)合招商會(huì)上,軟通動(dòng)力信息技術(shù)(集團(tuán))股份有限公司(以下簡(jiǎn)稱"軟通動(dòng)力")與長(zhǎng)三角投資(上海)有限...

關(guān)鍵字: BSP 信息技術(shù)
關(guān)閉
關(guān)閉