Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 253
Zackary Gianopoulos Avatar asked Oct 20 '25 02:10

Zackary Gianopoulos


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.

like image 147
Kaizar Tariq Inan Avatar answered Oct 21 '25 15:10

Kaizar Tariq Inan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!