0

Windows 11 has changed the Visual Studio "Developer Command Prompt for VS 20xx" (cmd.exe, "DOS box") to behave like the terminal and warn if you attempt to paste in multiple lines of commands:

"Warning: you are about to paste text that contains multiple lines..."

This answer has instructions to stop this in terminal, is there an equivalent for the developer prompt? - How do I get Windows Terminal to stop asking me every time I paste something into the terminal?

Dave S
  • 111
  • 1
  • 4
  • 2
    When you say "Developer Command Prompt" you mean that comes with Visual Studio? – Señor CMasMas Apr 13 '23 at 22:43
  • 3
    The same JSON config line should work for the developer command prompt as well. But it can be tricky to figure out WHICH JSON file corresponds to that specific command prompt. On my own system I added the JSON command to Terminals default JSON file and that seems to have cured all terminal sessions. – Tonny Apr 13 '23 at 22:44
  • You'll probably need to look at the bat file that loads the developer command prompt and see if the settings from that other question can be added somewhere. – music2myear Apr 13 '23 at 22:44
  • @SeñorCMasMas - yes, "Developer Command Prompt for VS 20xx" on the start menu. I'm pasting in some different after-build steps including code-signing that vary so they aren't in the build process itself. (Question edited to add this) – Dave S Apr 13 '23 at 22:59
  • 1
    Yes; I can confirm the existing solution works for the developer terminal. Just modify the WT profile section for that particular profile – Ramhound Apr 14 '23 at 00:33
  • 1
    I just verified what @Ramhound and Tonny stated (under Windows 11 VM). You should be good to go with the knowledge they were nice enough to provide. Terminal is prettier for sure but in ways.. needs tweaking to have the same feature set. – Señor CMasMas Apr 14 '23 at 00:44
  • 1
    If you get this working using that knowledge, post yourself a detailed answer. Wait a day. Accept your own answer (if it is still indeed the best). Collect points. – Señor CMasMas Apr 14 '23 at 00:46

0 Answers0