ではEclipse PDT
、Ctrl-Shift-F
コードを再フォーマットします。ただし、コメントはまったく変更されません。不規則な複数行のコメントを 1 行あたり 80 文字 (または何でも) に再フォーマットする方法はありますか?
つまり変換
// We took a breezy excursion and
// gathered Jonquils from the river slopes. Sweet Marjoram grew
// in luxuriant
// profusion by the window that overlooked the Aztec city.
に
// We took a breezy excursion and gathered Jonquils
// from the river slopes. Sweet Marjoram grew in
// luxuriant profusion by the window that overlooked
// the Aztec city.
(これは通常のEclipseにも当てはまると思います。)
更新inモードは上記の行を再フォーマットEclipse
しJava
ますが、それらが /* */ スタイルのコメントである場合のみです。// 長すぎる行は短くなりますが、短すぎる行は結合されません。