简体   繁体   English

Netbeans:修复进口与组织进口

[英]Netbeans: Fix Imports vs Organize Imports

In the Netbeans IDE, what precisely do the 'Fix Imports' and 'Organize Imports' do? 在Netbeans IDE中,“Fix Imports”和“Organize Imports”究竟做了什么?

I have recently migrated from Eclipse, and I find the wording somewhat confusing. 我最近从Eclipse迁移过来,我发现这个措辞有些令人困惑。 'Fix Imports' in Netbeans seems to have the same function as 'Organize Imports' did in Eclipse. Netbeans中的“Fix Imports”似乎与Eclipse中的“Organize Imports”具有相同的功能。 If this is the case, what is the function of the 'Organize Imports'? 如果是这种情况,'组织进口'的功能是什么?

I have tried googling the topic but I am just referred to an old Netbeans plugin of that name. 我试过谷歌搜索主题,但我只是提到了该名称的旧Netbeans插件。 Even the official Netbeans tutorial page only mentions 'Fix Imports'. 即使是官方的Netbeans教程页面也只提到了“Fix Imports”。

"fix imports" --- add (and organize) missed imports “修复进口”---添加(并组织)错过的进口

"organize imports" --- format the import statements as configured in "Tools" -> "Options", section "Editor": "Language" = "Java" and "Categroy" = "Imports" “组织导入”---按照“工具” - >“选项”,“编辑器”部分中的配置格式化导入语句:“语言”=“Java”和“分类”=“导入”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM