Вопрос

In Notepad++, you can go to View > Show Symbol > Show All Characters and see where the newline and tabs chars are. This is useful, because it allows you to easily identify where an indent is made with spaces instead of tabs (Very important in Python) or just to see where there are trailing spaces etc. on a line (Just keeping things neat).

I would like to use the same functionality in Linux, but gedit does not seem to have it. Is there a different editor that has this, am I not seeing the feature or is it not available?

Это было полезно?

Решение 3

For Python 'SPE' or 'ERIC3' are great.

I know for sure that SPE supports highlighting whitespace. Probable ERIC3 as well.

Also you can let the editors save without trailing spaces.

'kate' supports highlighting whitespace as well as tabs and can also remove trailing spaces and/or highlight them.

At the moment I'm using 'KDevelop' because it supports vertical selection which is very usefull at times.

Другие советы

try vi <filename> and then in command mode type :set list

Gedit has a plugin called 'Draw Spaces' it doesn't show newline characters, however, I am sure you could modify the plugin if you wanted that. The plugin is available in the 'gedit-plugins' package in the Ubuntu repositories.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top