Skip to content

VS2022 Issues and Solutions

Valk edited this page Oct 1, 2024 · 35 revisions

Issue 1: Distracting White Outline Box on Current Line

Untitled

Description:
A white outline box appears on the current line of code, making it difficult to focus.

Solution:

  1. Go to Tools > Options.
  2. Navigate to Text Editor > General.
  3. Under the Display section, uncheck Highlight Current Line.
  4. Click OK to save the changes.

Issue 2: Method Colors Flash White and Blue while Scrolling

Description:
While scrolling through code, method colors flash white and blue, causing visual distraction.

Solution:

  1. Uninstall the Godot extension as apparently it's not needed? (the Godot extension is what is causing the colors to change on scroll)
  2. Close VS2022
  3. Always open the solution file (Template.sln) before opening any script through Godot (this way definitions made by source generators will get registered properly)
  4. Observe how the flashing issue is gone and VS2022 intellisense still works properly with Godot

Issue 3: Backspace Key and Other Keys do not Work

Description:
The Backspace key and other keys stop functioning in the editor.

Solution:

  1. Restart Visual Studio 2022.
  2. If the issue persists, restart Visual Studio 2022 again. Multiple restarts may be necessary.

Issue 4: Ctrl + D does not duplicate current line onto next line

Description:
The Ctrl + D shortcut does not duplicate the current line onto the next line.

Solution:

  1. Go to Tools > Options.
  2. Navigate to Environment > Keyboard.
  3. In the Show commands containing text box, type Edit.Duplicate.
  4. Select the Edit.Duplicate command from the list.
  5. In the Press shortcut keys text box, press Ctrl + D.
  6. Click Assign to assign the shortcut.
  7. Click OK to save the changes.
Clone this wiki locally