Eclipse设置Tab键缩进4个空格的步骤(纠正开发习惯)

1.点击 window->preference-,选择 General->Editors->Text Editors,勾选右侧的“insert space for tabs”,保存;

2.点击 window->preference-,选择 java->code style ->formatter;点击new profile新建样式,在profile name处键入名字tab_value_4,点击ok;

3.点击右侧的editor,选择左侧 Tab policy 的值为 Spaces only,应用即可,点击确定,之后点击Apply and Close即可。

发布了7 篇原创文章 · 获赞 2 · 访问量 4309

猜你喜欢

转载自blog.csdn.net/rao991207823/article/details/81835329