【英文】修改Eclipse制表符为4个空格

Introduction

Changing Eclipse tab stops to 4 spaces.

Setting for Java

  • Eclipse -> Preferences-> search for Formatter

  • Java -> Formatter -> New to create a custom configuration (because the default configuration does not allow modifications)

  • Define a configuration name

  • Select Use spaces to indent wrapped lines -> OK

Setting for general text

  • Eclipse -> Preferences-> search for Editor

Setting for XML

  • Eclipse -> Preferences-> search for Editor

Setting for HTML

  • Eclipse -> Preferences-> search for Editor

Setting for CSS

  • Eclipse -> Preferences-> search for Editor

Setting for JSON

  • Eclipse -> Preferences-> search for Editor

Setting for ANT

  • Eclipse -> Preferences-> search for Formatter

Completion

References

CSDN - aliahhqcheng
CSDN - SenaFox