Eclipse的基本设置

默认编码设置:

Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8

Window->Preferences->General->Workspace   面板Text file encoding 选择UTF-8

Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)

自动补全输入:

  • 类文件自动补全:Windows->preferance->java->Editor->Content Assist 面板最下端 Auto Activation 将Auto activation triggers for Java后面的文本框中的“.”替换成“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.”
  • XML文件自动补全Windows->preferance->XML->XML Files->Editor->Content Assist
    面板最上端 Auto Activation 将Prompt when these characters are inserted后面的文本框中的“<=:”替换成“<=:abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ”

XML约束设置:

Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽

DTD类型约束文件 Key Type: URI
XSD类型约束文件 Key Type: Schema Location

猜你喜欢

转载自mugui83.iteye.com/blog/2274172
今日推荐