1

If I open some old VB.NET code in VS Code, I actually do see the objects, types etc. in different color, so the code is recognized by editor. However, what makes the code hard to read is that almost everything is highlighted as error (understandably because editor doesn't support VB.NET).

How can I switch-off error-checking so I can see the code without red underscores? I don't mean to write code, compile it etc. I just want to be able to read and analyze it normally.

enter image description here

I didn't stress this enough: I don't need to debug, I don't need to write code, I don't need to compile it... I just want to read it normally without all those red snakes all over :P

Dalibor
  • 1,430
  • 18
  • 42
  • when you open a new project....you don't have the issue? look here. https://stackoverflow.com/questions/21098333/visual-studio-compiles-fine-but-still-shows-red-lines – Chillzy Jan 16 '18 at 23:50
  • Nope, it's just "out of space" page inserted in my angular project which I open to see and read the code. But readibility would be much better if there are no red snakes all over. – Dalibor Jan 17 '18 at 13:31
  • then disable intelli sense. also look at the link i posted. there is many reason why it would do that. – Chillzy Jan 17 '18 at 16:20
  • Disabling intellisense didn't work: "[vb]": { "editor.quickSuggestions": false, "editor.acceptSuggestionOnEnter": false, "editor.suggestOnTriggerCharacters": false }, It's not that I want to fix the code, to find out what causes the red underlines, but I want to be able to read even syntatically wrong code, but I can't concentrate with all those red snakes around – Dalibor Jan 17 '18 at 20:53

2 Answers2

2

VS Code does support VB.NET. What is your file extension? Down in the bottom-right (status bar) you can see (& change) the currently selected language.

Note/edit: to fully answer your question, you could instead select Plain Text as the language, this will also get rid of all that highlighting.

Chalky
  • 1,624
  • 18
  • 20
  • this worked. after trying to disabling bunch of settings, I just switched this page (that was recognized as HTML) to VB and the "snakes" dissapeared, – Dalibor Jan 17 '18 at 21:07
0

Making errors and warnings transparent:

"workbench.colorCustomizations": {
    "editorError.border": "#0000",
    "editorError.foreground": "#0000",
    "editorWarning.border": "#0000",
    "editorWarning.foreground": "#0000",
},
Alex
  • 59,571
  • 22
  • 137
  • 126