EclipseでWorkspaceをつくるたびに文字コードやら設定しなおすのが面倒なので、Workspaceのデフォルト設定をテンプレート化しました。
設定した内容は以下のとおりです。
General>Appearance>Colors and Fonts>Basic>Text Font= Tahoma 8General>Workspace>Text file encoding= Other: UTF-8General>Workspace>New text file line delimiter= Other: UnixJava>Code Style>Conventions for variable names>Fields.Prefix= mJava>Code Style>Conventions for variable names>Parameters.Prefix= aJava>Code Style>Conventions for variable names>Local Variables.Prefix= tJava>Code Style>Exception variable name in catch blocks= aCauseJava>Code Style>Formatter>Active profile= kurusugawa.jp extends Eclipse [built-in]Line Wrapping>General settings>Maximum line width= 9999Comments>Line width>Maximum line width for comments= 9999Off/On Tags>Enable Off/On tags= trueOff tag= @formatter:offOn tag= @formatter:on
Web>CSS Files>Creating files>Encoding= ISO 10646/Unicode(UTF-8)
Web>CSS Files>Editor>Formatting>Line width= 999Web>HTML Files>Creating files>Encoding= ISO 10646/Unicode(UTF-8)Web>HTML Files>Editor>Formatting>Line width= 999XML>XML Files>Editor>Formatting>Line width= 999
添付のtemplate-kurusugawa.zipをWorkspaceディレクトリに展開すれば有効になります。
プラグインを使う場合など、他におすすめの設定があれば教えてください。
Mavenプラグイン(m2eclipse)の設定
Maven>Download Artifact Sources= trueMaven>POM Editor>Open XML page in POM editor by default= true
添付ファイル
- template-kurusugawa.zip
- template-kurusugawa-maven.zip(Mavenプラグインの設定含む)
- template-kurusugawa-indigo.zip(Eclipseに統合されたMavenプラグインの設定含む)