Showing whitespace in Eclipse

Cách cài đặt hiển thị space trong code trong Eclipse

I use these settings to highlight undesirable whitespace in my code. By undesirable I mean tabs (when I use spaces for indentation) and any trailing whitespace.

  1. Open Preferences.
  2. Go to General > Editors > Text Editors.
  3. Check the Show whitespace characters checkbox.
  4. Click the whitespace characters link.
  5. Use the following settings.

Click OK to save the whitespace settings.

Click OK to save the preferences.

Related Posts
Phím tắt trong Eclipse giúp tăng năng suất coding

Các phím tắt sẽ giúp tốc độ coding của bạn nhanh hơn rất nhiều, hơn nữa format code của bạn Read more

Hướng dẫn cách tải và cài đặt phần mềm Eclipse

Tải phần mềm Java Development Kit (JDK) Nếu bạn sử dụng Eclipse hay bất cứ công cụ IDE nào để Read more

Hiển thị trạng thái Heap Memory trong Eclipse

Để hiển thị trạng thái bộ nhớ Heap được sử dụng bởi Eclipse ta làm như sau: Trên thanh Menu Read more

Hướng dẫn xem source code và Java doc trên Eclipse (Attached Source)

Đôi khi bạn muốn xem các class có sẵn của Java được code như nào (Java Docs). Ví dụ như Read more

Hãy bình luận đầu tiên

Để lại một phản hồi