雑廉堂の雑記帳

Spring Tool Suite 4.4.2 設定メモ ( Eclipse 4.13 )

Photo by Jon Moore on Unsplash

覚書です。

 

 

Spring Tool Suite 4.4.2 設定メモ

Spring.io より

以前に作成した設定に関する覚書を、現在のバージョンに合わせたものです。

Eclipse 4.13 をベースにした、Spring Tool Suite 4.4.2 の設定に関するメモになります。

プラグインのインストール

 

更新サイトからインストール

Install new software

Help → Install new software

 

Eclipse Update Site (2019-09)

Work with: → 2019-09-http://download.eclipse.org/release/2019-09

CollaborationWeb, XML, Java EE and OSGi Enterprise Development から次の4点を選択してインストール。

 

FindBugs

FindBugs をインストール。

Work with: → http://findbugs.cs.umd.edu/eclipse

 

EclEmma

テストのカバレッジ計測プラグインをインストール。

Work with: → http://update.eclemma.org

 

StartExplore

「Explorerで開く」を追加するプラグイン。

Work with: → http://fabioz.github.io/startexplorer/update/

 

AnyEdit Tools

AnyEdit Tools をインストール。

AnyEdit Tools

Help → Eclipse Marketplace

 

全般の設定

Window → Preferences で設定画面を開く。

 

General

一般設定。

General

 

Appearance → Colors and Fonts

外観 → 色とフォント

General / Appearance / Colors and Fonts

 

Appearance → Label Decorations

外観 → ラベル装飾

General / Appearance / Label Decorations

 

Editors

全般的なエディタ設定。

General / Editors

AnyEdit Tools

General / Editors / AnyEdit Tools

Structured Text Editor → Task Tags

タスクタグを有効にする。

Text Editors

General / Editors / Text Editors

Show Whitespace Characters

Text Editors → Spelling

スペルチェックを無効にする。

 

Startup and Shutdown

General / Editors / Startup and Shutdown

 

Startup and Shutdown → Workspaces

General / Startup and Shutdown / Workspaces

 

Workspace

General / Workspace

 

Inatall / Update

 

Automatic Updates

General / Install/Update / Automatic Updates

 

Java

 

Build Path

Java / Build Path

Build Path → Classpath Variables

Java / Build Path / Classpath Variables

 

Code Coverage

Java / Code Coverage

 

Code Style

Code Templates
Comments

コメントのコードテンプレートを変更する。

Java / Code Style / Code Templates

/*
 * Copyright ${year} by (User Name), All rights reserved.
 */
/**
 * .
 *
 * @author ${user}
 * @version 0.0.1, ${date}
 * @since 0.0.1
 *
 * ${tags}
 */
/** . */
/**
 * instantiate this class
 *
 * ${tags}
 * @since 0.0.1
 */
/**
 * .
 *
 * ${tags}
 * @since 0.0.1
 */
/**
 * {@inheritDoc}
 * @since 0.0.1
 * ${see_to_overridden}
 */
/**
 * delegate to .
 * 
 * ${tags}
 * @since 0.0.1
 * ${see_to_target}
 */
/**
 * to get ${bare_field_name}
 *
 * @return the ${bare_field_name}
 * @since 0.0.1
 */
/**
 * to set parameter to the ${bare_field_name}
 *
 * @param ${param} the ${bare_field_name} to set
 * @since 0.0.1
 */

 

formatter

Java / Code Style / Formatter

  1. [New] をクリック
  2. Profile name: に適当な名前を入れて、Initialize settings with the following profile: を "Eclipse [built-in]" として OK

Formatter → New Profile

Indentation — インデントの設定

Java コードのインデントに関する設定

formatter → Indentation

 

Compiler

Errors / Warnings

Java コンパイラのエラー/警告に関する設定。デフォルトよりもうるさくなるように設定。

内容は画面キャプチャの通り。

コードスタイル

Errors/Warnings - Code Style

潜在的なプログラミングの問題

Errors/Warnings - Potential programing probrems

名前のシャドーイングと競合

Errors/Warnings - Name shadowing and conflicts

不要なコード

Errors/Warnings - Unnecessary code

ジェネリック型 (総称型)

Errors/Warnings - Generic types

アノテーション (注釈)

Errors/Warnings - Annotations

Null 分析

Errors/Warnings - Null analysis

使用すべきでない制限されたAPI と、モジュール

Errors/Warnings - Deprecated and restricted API | Modules

Javadoc

コンパイラの Javadoc に関する設定

Java / Compiler / Javadoc

 

Editor

Content Assist

Java / Editor / Content Assist

また、Sorting and Filtering 項目中の、

Content Assist → Favorites

Java / Editor / Content Assist / Favorites

  1. New Member
  2. org.junit.Assert.assertThat を追加
Folding

Java / Editor / Folding

Save Actions

Java / Editor / Save Actions

Typing

Java / Editor /Typing

 

FindBugs

Java / FindBugs

 

Maven

Maven

 

User Interface

Maven / User Interface

 

User Settings

Maven / User Settings

 

Team

Team

 

Git

Team / Git

 

Web

 

CSS Files

Web / CSS Files

CSS Files → Editor

Web / CSS Files / Editor

 

HTML Files

HTML Files → Editor

Web / HTML Files / Editor

 

JSP Files

Web / JSP Files

 

XML

 

XML Files

XML Files → Editor

XML / XML Files / Editor

 

Conclusion

以上です。お疲れさまでした。

モバイルバージョンを終了