This is a cache of http://dbflute.seasar.org/ja/manual/topic/friends/vscode/index.html. It is a snapshot of the page at 2025-04-29T00:41:26.932+0000.
Friend<strong>s</strong> - V<strong>s</strong>Code | DBFlute

Friends - VsCode

DBFluteとは直接無関係ながらも、同時に利用するととても便利なライブラリを紹介します。

DBFlute と VsCode

DBFluteは、利用上において特に VsCode に依存してはいません。ですが、VsCode 上で DBFlute の利用を支援するための情報や設定のExampleなどが提供されています。

フォーマッター設定の共有

Eclipseの設定に合わせる

とりあえずこれで、ほぼEclipseと同じ感じになった。

e.g. VsCodeのフォーマッターに関する設定ファイルの構成 @settings.json
{
  "editor.defaultFormatter": "vscjava.vscode-java-pack",
  "java.format.settings.profile": "DBFlute style",
  "java.format.settings.url": "https://dbflute.org/meta/friends/eclipse/dbflute-eclipse-code-formatter.xml",
  "editor.formatOnsave": true,
  "java.saveActions.organizeImports": true
}

import文の定義順序は、デフォルトのままでEclipseとほぼ一緒っぽい?

defaultFormatterはjava-packでいいのか?みなさんVsCodeでJavaやるときはjava-pack?