VS 2022 No longer allows me to drag and drop links to css/js files

Viewed 522

In VS 2019, You're able to drag a JS or CSS file and it'll automatically create the src link to that file. In 2022 this functionality is no longer there, When looking for solutions I only saw two possibilities:

  1. Make sure Drag and Drop Text Editing is enabled (It is, not the fix)
  2. Disable LSP in Preview features in the environment section (Can't even see this option, even on latest version)

Any help would be appreciated as this does limit how fast we are able to complete our work.

1 Answers

You can still use them.

There is a work around suggested by Microsoft: Tools-->Options-->Text Editor-->HTML-->Advanced-->Use Legacy Razor Editor for Asp.NET (Yes) -->OK

And restart the visual studio.

Related