如何在 java 中缩进属性文件中的内容



我想缩进我的属性文件中的内容。

例如:

              This is center aligned title
This is my first line
This is my second line

我可以使用'n'管理将线条彼此分开,但是,我不明白如何居中对齐我的第一行。

't'参数似乎也无济于事。

因此,

只需尝试以下模式:

#               This will be centered
property1=Value1
property2=Value2
property3=Value3
property4=Value4

最新更新