Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptana 3 - How remove trailing whitespaces on save

Tags:

php

editor

ide

I'm trying Aptana3 but I don't find an essential feature :

Remove trailing whitespaces/empty lines on save.

like image 885
yvan Avatar asked Aug 27 '11 18:08

yvan


People also ask

How do you ignore whitespace trailing?

You can prefix - to disable any of them (e.g. -trailing-space ): ### blank-at-eol treats trailing whitespaces at the end of the line as an error (enabled by default).

How do I remove unwanted spaces in eclipse?

Just use C++ -> Editor -> Save Actions. Also General -> Editors -> Text Editors -> Show whitespace characters (click on it for detailed settings) is extremely handy. I couldn't figure out why suddenly white spaces at end of lines are removed, until I saw your question and found out it was becuase of AnyEditPlugin.

What are trailing Whitespaces?

Trailing whitespace is any spaces or tabs after the last non-whitespace character on the line until the newline.


1 Answers

This is now possible.

Preferences -> Aptana Studio -> Editors

Check "Remove trailing whitespace characters"

like image 89
david Avatar answered Oct 11 '22 04:10

david