Eclipse设置Tab键缩进4个空格的步骤,也就是按一下Tab键输出四个空格

Eclipse设置Tab键缩进4个空格的步骤,也就是按1下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即可。

posted on 2019-01-25 10:43  梁凤财Zero  阅读(1698)  评论(0编辑  收藏  举报

导航