question

BrandonStewart-4522 avatar image
0 Votes"
BrandonStewart-4522 asked BrandonStewart-4522 commented

What are these ANNOYING boxes around my VB code, and how do I get rid of them?

I get boxes (see attached image) around my VB code in Visual Studio. They occur most promenantly when I use the Search and Replace tools. What are they, and how do I permenantly get rid of these hideous and annoying things? I have asked this question on numerous other forums and no one seems capable of answering me.

82019-screenshot-2021-03-27-113505.png


vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrandonStewart-4522 avatar image
0 Votes"
BrandonStewart-4522 answered BrandonStewart-4522 commented

No 3rd-party extensions are installed. No extensions/add-ons at all are installed except those Microsoft forces onto us and won't let us uninstall - I despise bloat.

Also, I've attached my settings file with an XML file extension. : 82496-exported-2021-03-29.xml



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @BrandonStewart-4522 , thanks for providing. I try to import this settings file on my local environment. And the editor is normal as before. Maybe you can try to delete the .vs folder next to sln file and caches fin C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\16.0_{version number}\ComponentModelCache

0 Votes 0 ·

At the suggestion of a friend, I disabled (unchecked) the 'Enter outlining mode when files open' option. I completely restarted Visual Studio and reopened my solution, then ran the Find and Replace tool again. And... voilà!! The boxes no longer appear. My friend further suggested that even if the box is unchecked to go ahead an check it (enable it), completely restart VS, then uncheck it (disable it) and restart Visual Studio again. She says that due to the buginess inherent to Visual Studio being built on top of GitHub's Electron, an undesired side effect is that sometimes VS update will record a setting one way in an XML file which will conflict with the very same same setting erroneously stored in a separate XML file, resulting in a conflict between the differing states of the same setting.

82673-vsboxes-01.png


0 Votes 0 ·
vsboxes-01.png (24.8 KiB)

Anyway, the boxes are now gone and are not reappearing. I emailed another person who had mentioned in a different forum that he was having the exact same issue. He followed the same process my friend suggested and says the boxes are now gone from his code, as well.

0 Votes 0 ·
Show more comments
Viorel-1 avatar image
0 Votes"
Viorel-1 answered Viorel-1 edited

If this is caused by some undesirable configuration changes and you want to restore the normal settings, then go to menu, Tools, Options, Environment, Fonts and Colours, select “Text Editor” and press “Use Defaults”.

Then, if you like the Dark theme, go to Environment, General, and select it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrandonStewart-4522 avatar image
0 Votes"
BrandonStewart-4522 answered

"If this is caused by some undesirable configuration changes..."

That's the problem. I don't know what the cause is. Whatever is causing it, it must be part of the VS program, whether it is intentional or a bug. Yet, no one from Microsoft seems to know what particular setting (or whatever else) is causing it. That's a bad sign when the makers of a product don't even know what one of their features is.

I have been using the same font/color settings for years and have not changed them. The boxes began to appear recently following a recent update.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered

Hi BrandonStewart,

Did you install third editor extension in your visual studio? Please try to disable them in Extensions > Manage Extensions.

If not, could you provide the vssettings file through Tools > Import and Export settings... ?

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.