eclipse杂笔

eclipse 快捷键篇

  • 快速定位到一个错误的地方> ctrl+.
  • 过滤掉导入的包,使项目显示简洁 点击这里的三角,然后点击customize view,选择filter->libraries from external
  • eclipse 导入myeclipse项目,我使用的版本是Eclipse Java EE IDE for Web Developers
      • 修改.project文件
      • <natures></natures>中加入以下代码
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
        
      • 在<buildSpec></buildSpec>中加入以下代码
        <buildCommand>
          <name>org.eclipse.wst.common.project.facet.core.builder</name>
          <arguments>
          </arguments>
        </buildCommand>
        <buildCommand>
          <name>org.eclipse.wst.validation.validationbuilder</name>
          <arguments>
          </arguments>
        </buildCommand>
    • 还有一种方法,就是右击你导入的工程,选择properties->Project Facets->{Dynamic Web Moudle,java},再点击同一个页面下的Further Configuration availabe,里面有设置srcwebContent的名称
  • eclipse中jquery.min.js报错,其实报错可能是eclispe加载min.js时出错,而min.js本身没错,所以只要让eclise不检查项目中的min.js就好了,主要是不要出现红叉
    • 右击项目,properties->javascript->include paths->source
原文地址:https://www.cnblogs.com/popping57/p/3243362.html