How to cut/paste in Visual Studio 2010 with Emacs emulator - visual-studio-2010

I downloaded the emacs emulator for Visual Studio 2010, and everything seems to work fine and dandy -- except cut and paste!
I can delete regions by setting a mark (CTRL-Space) and then delete it with CTRL-W. But it seems that it never goes to the kill ring -- if I try CTRL-Y to yank it, then nothing happens.
Curiously enough, if I delete a line with CTRL-K, then the deleted line goes to the kill ring.
Visual Studio's keybinding menus suggest that CTRL-W should be cut and CTRL-Y should be paste, so this seems to be something wrong with the emulator.
Has anyone had a similar problem, or know how to cut/paste with emacs emulation on?

This is a known bug and Microsoft has declined to fix it. See: http://connect.microsoft.com/VisualStudio/feedback/details/672582/emacs-mode-cut-copy-paste-errors
This is the bug that I submitted. At one point I had Ctrl-w/Ctrl-y working internal to Visual Studio, but never externally. I was fiddling with exporting/importing settings and it started working. Now I've had to reset Visual Studio and it's not working again, and no amount of fiddling will get it back to where I was. Sigh.
So whenever I have to do some serious cut/paste work, especially between the code and some other window, I just save the file in VS and open up Emacs, do the editing in Emacs, then save the file in Emacs. When I go back to VS it asks if I want to reload the file. A click on "Yes" in I'm back working in VS, ready to compile or whatever.

I discovered that dragging and dropping text selections from other applications, into VS2010 with the emacs package installed, DOES work. Your mileage may vary.

Related

Visual Studio 2019 keyboard stops responding or continously repeats characters

Using Visual Studio 2019 Enterprise (v16) (with Resharper and StyleCop extension for Resharper installed) regularly has the following issues with the keyboard (many times per day).
Keys entered on the keyboard are not input
Keys entered on the keyboard get input in the wrong order (even typing slowly), like this:
Keys entered (including CTRL+V) get repeated continuously, like this:
The only way to temporarily resolve it is to close visual studio and re-open where it will work fine for 5-60 minutes before the problem reoccurs.
Steps taken:
Replace the cheap external keyboard with a more expensive one (Logitech G213)
Unplug all USB devices except for mouse and keyboard
Reinstall Visual Studio
None of these steps have resolved the issue.
I have not yet tried uninstalling Resharper/Stylecop as I do require these for my every day work.
Has anyone seen/solved this problem before?
See the link from the ReSharper forums. This shows a workaround and a response. I also saw the empty document issue reported there too.
I'm going to give it a try or rollback if necessary.
This sometimes happens when an extension (typically a code analyzer) crashes with an exception (indicated by a status bar on top of the code window) while typing.
A workaround seems to be to open a pull-down menu, such as the File menu, and close it again.
I would call the resulting keyboard behavior a bug in Visual Studio, but the original cause is also always a bug in the extension you are using. You may therefore want to report it to both Microsoft and the developer of the extension. Note that this is my personal opinion. I do not work for Microsoft.

How can I manually delete visual studio?

In my case I cannot run visual studio (2015). It starts and just prints a white screen. Interestingly everything is still on the screen, if I move to the top right hand corner the icon will change and it will read "close window". I couldn't find a way to fix this so I just tried the obvious, reinstall. Except I can't. Any attempt to re-Install any version of Visual Studio, or to Maintain/Fix/Uninstall the existing version just results in the attached picture. The zero body popup-box cannot be closed, except through task manager.
So I think at this point I have 3 possibilities. Somebody can suggest another approach... I can somehow find out how to manually uninstall Visual Studio... or I delete everything and re-install everything, the whole operating system, from scratch. I think the third option is the most likely, but am hoping that there are other options.

Visual Studio 2015 seems to be hiding from me?

I have a problem with Visual Studio 2015 Community.
It's a bit difficult to explain, but here goes.
It seems like Visual Studio is not updating the window when I e.g. Open a project, tries to write in command line, open a file.. or do anything. But a soon as I manually resize the window of Visual Studio, all the things I have pressed or typed appears.
I have Visual Studio installed on two computers. At first it was all fine and dandy on my laptop, everything worked as it should.
Then the problem started on my desktop computer, so I decided to go back to my laptop, but surprise! Now my laptop had been cursed with the same problem! (They use the same user in Visual Studio).
I have tried to re-install VS, repair VS and delete the cache folder inside "App Data"-folder, but no luck.
It seems like Visual Studio works fine, but it just won't show me. (Unless I resize the window)
Can anyone please help me?
Found the problem!
It was the voice communication app called "Mumble" that created all the fuss!
Mumble has a feature called "Overlay" - That feature makes VS go crazy, apparently!
Turning it off, makes all of my troubles go away.
Thank you all for the input anyways.

Visual Studio 2010 intellisense stopped working

I've got a small problem with the VS2010. I installed Resharper and soon after my installation period has expired, My Visual Studio 2010 Intellisense stopped working. Its very hard to work without Intellisense. It doesn't even show the member properties even . I tried doing devenv.exe /ResetSettings and I end up with an error saying:
it is not recognised as a internal or external command, operable program or batch file.
My solution
I don't know how people are solving this but I just solved my above problem by resetting the Vs settings. Tools-->Import ExportSettings-->selecting the reset all settings and following the wizard .
By doing this of course I lost the little settings I made just like adding line numbers and stuff, but I did that again.
Not sure if this is the ideal solution for people looking for an answer, but just helped me to get the Intellisense in the first place which I was actually looking for.
This worked for me.
http://miguelmoreno.net/post/Intellisense-not-working-in-Visual-Studio.aspx
In Visual Studio select Tools > Options > Text Editor > All Languages. Ensure that the checkboxes in the Statement Completion section are actively checked (not grayed out).
For risk of sounding like tech support:
Reboot your machine and check if Intellisense is back, else try devenv /ResetSettings again.
I tried to reboot and devenv.exe /resetsettings.
What actually worked for me was the following:
Goto Tools > Options > Resharper
Suspend Resharper
Resume Resharper
No application restart or PC reboot or anything required after that.
Found here: http://geekswithblogs.net/GruffCode/archive/2010/11/09/resolving-issue-ldquoresharper-auto-completion-live-templates-and-intellisense-stop-working.aspx
Saving my project then restarting VS worked for me.
I accidentally had two of the same file open in the IDE. After closing one of them, intellisense started working again! This is how you can reproduce it:
Drag a tab onto your desktop, then open the same file by double clicking it in the Solution Explorer. You now have 2 of the same thing open. You can now drag that floating window back into the IDE as a tab and now you (unfortunately) have 2 of the same file open at the same time. You can only edit the original one and the other one will drive you crazy.
#Ronald McDonald, I tried that solution, but everytime I go back in, the Statement Completion options are reset, so that the boxes are filled, not checked (i.e. on for some languages, off for others). I'm guessing that it's ReSharper responsible?
For anyone else having this problem, if the above solutions don't work, and you have ReSharper, give this a try:
Reset key mappings in Visual Studio: Make sure only one instance is running. Tools -> Options -> Environment -> Keyboard -> Reset.
Restore ReSharper keyboard shortcuts: ReSharper -> Options -> Environment -> General -> ReSharper keyboard shortcuts. Close Visual Studio.
It's too early to tell, but I think (hope) that this has worked for me. I keep losing not only Intellisense, but undo/redo stops working (even greys out in the Edit menu, until I reopen the menu a few times), along with copy/paste and most (sometimes all) Ctrl+ keyboard shortcuts. I've had this problem for years, on different computers, and I'm pulling my hair out trying to fix it. I really hope this one finally worked!
First check in VS tools-> options-> editor -> statement completion is checked (not grayed out).
Then follow this procedure:
close all open files in the VS IDE.
Save & restart VS.
Make sure the file you are writing into is included in the project (and not excluded by mistake)
If this does not solve the problem, close VS & try from the command line running: devenv /ResetSettings
else try installing the hotFix: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26662
cheers
Change the path location for the project . If it exist in some folder then place it into another.
This will solve the issue
Intellisense stopped working. Tried the methods suggested here to no avail. Noticed it was only affecting only the current file. Closed Project, deleted the .suo file and restarted project. It is now working for all files. :)
If using ReSharper:
ReSharper / Options... / "Clear Caches".
Quit and restart Visual Studio.
I found that I had mistakenly uninstalled SQL Server Compact 3.5 SP2.
Re-installed, then set Options->TextEditor->Advanced->Disable Database = False
worked for me.

How do I REALLY reset the Visual Studio window layout?

I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them. I've tried:
Window -> Reset Window Layout
Deleting the .suo files in my project directories
Deleting the Visual Studio 9.0 folder in my Application Settings directory
Any ideas?
Have you tried this? In Visual Studio go to Tools > Import and Export Settings > Reset all settings
Be sure you back up your settings before you do this. I made the mistake of trying this to fix an issue and didn't realize it would undo all my appearance settings and toolbars as well. Took a lot of time to get back to the way I like things.
Try devenv.exe /resetuserdata. I think it's more aggressive than the Tools > Import and Export options suggested.
Also check Tools > Add In Manager and make sure there aren't any orphans there.
How about running the following from command line,
Devenv.exe /ResetSettings
You could also save those settings in to a file, like so,
Devenv.exe /ResetSettings "C:\My Files\MySettings.vssettings"
The /ResetSettings switch, Restores Visual Studio default settings. Optionally resets the settings to the specified .vssettings file.
MSDN link
I had similar problem except that it happened without installing any plugin. I begin to get this dialog about source control every time I open the project + tons of windows popping up and floating which I had to close one by one.
Windows -> Rest Windows Layout, fixed it for me without any problems. It does bring the default setting which I don't mind at all :)
If you want to reset the window layout. Then
go to "WINDOW" -> "RESET WINDOW LAYOUT"
If you have an old backup copy of CurrentSettings.vssettings, you can try restoring it.
I had a completely corrupted Visual Studio layout. When I tried to enter debug, I was told that VS had become unstable. When I restarted, my window layout would then be totally screwed. I tried restoring the VS current user settings in the registry from a backup, but that didn't help. However, restoring CurrentSettings.vssettings seems to have cured it.
There seems to be a bunch of binary stuff in there and I can imagine it gets irretrievably corrupted sometimes.
Note: if you have vs2010 and vs2008 and you want to reset the 2008, you will need to specify in command line the whole path. like this:
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /resetsettings
If you don't specify the path (like devenv.exe /resetsettings), it will reset the latest version of Visual studio installed on your computer.
I close them, but they always come back
When you say "they always come back" do you mean "next time you restart Visual Studio" or "immediately"?
One quirk of Visual Studio (at least VS2005) is that settings aren't saved until you exit. That means that if VS crashes at all while you are using it, any layout changes you made will be lost. The way around this is to always gracefully exit when you have set up everything like you want it to be.
Not sure if this will help your particular situation though.
I tried most of the suggestions, and none of them worked. I didn't get a chance to try /resetuserdata. Finally I reinstalled the plugin and uninstalled it again, and the windows went away.
If you've ever backed up your settings (Tools -> Import and Export Settings), you can restore the settings file to get back to a prior state. This is the only thing that I've found to work.
If you want to reset your development environment of your visual studio, then you can use Import and Export setting wizard. see this for all steps:
http://www.authorcode.com/forums/topic/how-to-reset-development-environment-settings-of-your-visual-studio/
Window -> Reset Window Layout didn't exist for me. For anybody looking in 2022 or later, I finally found the answer! The crucial information, buried in a VSCode update release note, was right at the bottom of this section. Here it is if the link breaks in the future:
If you'd like to reset all views back to the default layout, you can run Views: Reset View Locations from the Command Palette.

Resources