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即可。

相关文章:

  • 2021-12-05
  • 2022-01-01
  • 2022-01-01
  • 2022-12-23
  • 2021-04-13
  • 2022-01-25
  • 2021-05-15
猜你喜欢
  • 2021-08-06
  • 2022-01-11
  • 2021-06-18
  • 2021-04-08
  • 2021-11-09
  • 2021-05-05
相关资源
相似解决方案