eclipse 常用设置

1、字符编码格式设置

Window -> Preferences -> General -> Workspace -> Text file encoding -> UTF-8

2、显示行号

Window -> Preferences -> General -> Editors -> Text Editors -> Show line numbers

3、显示空白字符

Window -> Preferences -> General -> Editors -> Text Editors -> Show whitespace characters

3、使用Space替换Tab

Window -> Preferences -> General -> Editors -> Text Editors -> Insert spaces for tabs

Window -> Preferences -> Java -> Code Style -> Formatter    新建一个profile,在General settings中选择Spaces only

Window -> Preferences -> XML -> XML Files -> Editor -> Indent using spaces

 

 

你可能感兴趣的:(eclipse 常用设置)