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