Open any C# solution (Scratchpad solution will work)
Dock Scratchpad window to the bottom of Visual Studio (same group where Error List is)
Open Scratchpad.cs
Switch to the Scratchpad window and type something there. Now type Ctrl-A and then Ctrl-C - everything works as expected, whatever you selected is copied to the clipboard.
Now create new SQL file via File/NewFile/SQL file, it will open new document called SqlQuery_1.sql (or something like that)
Type anything in that SQL file but don't save it.
Switch to the Scratchpad window and type something there. Now type Ctrl-A (works) and then Ctrl-C - now it doesn't work, error message is as displayed below:
Please note that behavior will be the same for new TXT file or, say, HTML file. I haven't tested other file types.
At the same time Right-Click/Copy menu in Scratchpad will work as expected. So it has to do specifically with handling of Ctrl-C.
I searched for this error message online and it was suggested to navigate to Tools/Options/Environment/Documents and uncheck "Show Miscellaneous files in Solution Explorer". I already had this unchecked (can't recall even doing explicitly but it was unchecked when I looked at it).
This is for Visual Studio 2019
Open any C# solution (Scratchpad solution will work)
Dock Scratchpad window to the bottom of Visual Studio (same group where Error List is)
Open Scratchpad.cs
Switch to the Scratchpad window and type something there. Now type Ctrl-A and then Ctrl-C - everything works as expected, whatever you selected is copied to the clipboard.
Now create new SQL file via File/NewFile/SQL file, it will open new document called SqlQuery_1.sql (or something like that)
Type anything in that SQL file but don't save it.
Switch to the Scratchpad window and type something there. Now type Ctrl-A (works) and then Ctrl-C - now it doesn't work, error message is as displayed below:
Please note that behavior will be the same for new TXT file or, say, HTML file. I haven't tested other file types.
At the same time Right-Click/Copy menu in Scratchpad will work as expected. So it has to do specifically with handling of Ctrl-C.
I searched for this error message online and it was suggested to navigate to Tools/Options/Environment/Documents and uncheck "Show Miscellaneous files in Solution Explorer". I already had this unchecked (can't recall even doing explicitly but it was unchecked when I looked at it).