Show special characters in QT editor
Is there a way for QT Creator to show special characters in editor, such as: spaces, tabs, new lines?
I would appreciate all help.
Go to Tools->Options->Text Editor->Display tab and check "Visualize whitespace".
@Chris-Kawa Hi, thanks for answer. But this one only shows spaces. It doesnt show tabs and new lines. Btw, it also revealed that Qt creator is turning my tabs into spaces. Can this be changes?
It doesn't show new lines but it does show tabs:
You can change whitespace related options in the Tools -> Options -> Text Editor -> Behavior tab. You can choose your preferred indent character, number of characters to indent, behavior of tab key and cleanup on save options.
@Chris-Kawa I tried doing it like you did, by my tabs are still generating spaces. Here is how I set it:
Is there something I dont get?
If it's indentation for code you're looking for then follow the blue C++ link in your picture.
On the C++ settings page click "Copy...", give the new style some name, choose it from the "Current settings" combo and then click the "Edit" button. In the dialog that appears you can set tab/spaces options for C++.
@Chris-Kawa Understood. Thank you.