我想更改Eclipse格式化程序的设置,使其不对param标签描述的缩进进行对齐。
这是我想要实现的效果:
/**
* Creates a new CTScanData object holding the data from the given file path.
*
* @param dataFilePath Path to the file containing the CT scan data.
* @param width Width of the scan data (left to right).
* @param depth Depth of the scan data (front to back).
* @param height Height of the scan data (top to bottom).
*/
以下是此格式化程序目前所执行的操作:
/**
* Creates a new CTScanData object holding the data from the given file path.
*
* @param dataFilePath Path to the file containing the CT scan data.
* @param width Width of the scan data (left to right).
* @param depth Depth of the scan data (front to back).
* @param height Height of the scan data (top to bottom).
*/
我已经尝试了几种设置,但都没有成功。
- 在Eclipse格式化程序编辑器中,我禁用了“@param后缩进描述”和“缩进Javadoc标记”。
- 在导出的XML文件中,我发现
org.eclipse.jdt.core.formatter.comment.indent_parameter_description
被设置为false。我也尝试将其设置为true,但没有任何影响。
注意:我正在使用Visual Studio Code中的格式化程序,但我认为与在Eclipse中使用它没有任何区别?每次更改后,我都重新启动了Visual Studio Code以确保更改得到应用。
org.eclipse.jdt.core.prefs
文件或使用 Eclipse IDE 来编辑该文件。请参见 https://dev59.com/GLDla4cB1Zd3GeqP3Bs7#53510327。 - howlger