hi does everyone know how to delete ' ->' in visual c++ ?
Ex.
#include<iostream>
-> int main()
-> ->{std::cout<<"Hello";
-> ->. return 0;
->-> }

Dani AI

Generated

As 's sample shows, those little arrows are not literal characters typed into the file — they are the editor's glyphs that represent whitespace. and correctly pointed toward the editor controls; here are practical, non-menu ways to remove the arrows from view or eliminate them from the file entirely.

If you want to remove the arrows by changing the file (so they never show, regardless of the editor display setting), convert tabs to spaces. A simple Find/Replace will do in most editors: enable regular expressions, then replace each tab with the number of spaces your project uses (commonly 4). Example find/replace:

Find (regex):

\t

Replace:

<four spaces here>

Do a quick preview before Replace All. Converting tabs to spaces removes the tab character that the arrow represents and keeps visual alignment consistent across editors.

For a persistent, cross-editor solution use an .editorconfig file in the repo so editors automatically insert spaces instead of tabs. Minimal example:

root = true

[*]
indent_style = space
indent_size = 4

A few cautions: some files (Makefiles, certain config formats) require literal tabs — do not convert those. Converting tabs changes file diffs; commit the change as a single formatting cleanup to avoid noisy history. If the goal is only to hide the glyphs while keeping tabs, use your editor’s “show whitespace” toggle (as others mentioned) rather than editing the files.

Recommended Answers

All 2 Replies

You don't actually delete that because it's a visual aid. What you can do is disable that particular visual aid.

What you want to do is go to EDIT -> ADVANCED -> View White Space to toggle that aid on or off. There's a couple of other aids you might want to toggle too.

commented: nice help :) +34

I've seen that several years ago -- browse around Tools --> Options.

[edit]^^^ Oh yes, there it is :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.