Weird cursor glitch in Visual Studio [duplicate] - c#

This question already has answers here:
Text overwrite in visual studio 2010
(11 answers)
Closed 8 months ago.
This weird text cursor glitch just happened to me in Visual Studio where instead of the normal text cursor it replaced it with a gray blinking cursor that is super buggy. Instead of working like a normal text cursor, it deletes/replaces the character behind the selected character when I delete that letter. So for example (using the picture above), it would delete the a instead of deleting the highlighted letter, which is m. It's really hard to explain but this cursor is super buggy and weird. I don't know if this is a bug or a keybind that I accidentally triggered

Press "insert"/"ins" key from your keyboard. Sometimes you need to click Fn + "insert" key.

Related

Visual Studio Code - Why is it removing my indentation? [duplicate]

This question already has answers here:
How to prevent VS Code from auto-deleting tabs on an empty line?
(2 answers)
Closed 1 year ago.
I have this problem that Visual Studio Code doesn't detect indentation properly when moving around with cursor, and actually removes indentation automatically that I have manually added.
Why is it doing this? How do you configure it? Can't seem to find the setting!
Maybe is one of your extensions, have you tried to disable some of then to see if helps ?

How to clear the terminal inside your c# program? [duplicate]

This question already has an answer here:
How to clear the entire console window?
(1 answer)
Closed 1 year ago.
I'm creating one of my first projects in visual studio code, and my game has a lot of text in it. I wanna know how to clear the terminal when the player goes into the next "level", so they don't see all the text fill up the screen from before.[What I want to clear while running the program] 1
You can use Console.Clear() method
You can use Console.SetCursorPosition(Int32, Int32) to set Cursor to 0,0 and redraw it without screen blink.
If you want simple clear Console.Clear() does the job, but it will take time to redraw Console again.

C# - Using FN+Fkeys with SendKey? [duplicate]

This question already has answers here:
How can I simulate function key combinations using C#?
(2 answers)
Closed 7 years ago.
So, I've created an on screen keyboard which is working great - except on my current keyboard I press FN and F1 (for example) and my screen brightness increases. F2 decreases, F5 turns backlit keyboard on/off etc etc
Can I recreate this on my keyboard? I thought maybe there would be someway of seeing how it works currently and adding that to my code? But I'm just a beginner so I don't really know.
I don't imagine there is a SendKeys parameter to handle this, so is there a work around?
Cheers!
The FN key modifies the key code being sent. So to do this (since the FN key acts as a hardware modifier as opposed to ALT, SHIFT, etc.) you could create a MessageBox that displays the key code whenever you press a key and use the values it gives you with these codes

Change cursor while mouse dragging [duplicate]

This question already has answers here:
How can i change the cursor (image) in the whole windows OS
(3 answers)
Closed 7 years ago.
I would like to implement the next construction in .NET in a WPF application.
There is a window, and in it there is a little picture, e.g.: 16×16.
If i move the mouse above the picture, and pressed the left button (without release), the cursor will change to this picture until i release the button.
Between the press and release i would like to drag out this cursor image outside the application window.
How can i implement this feature without modifying system registry values?
Thanks in advance,
Peter
You cannot change the Windows cursor without changing the registry. This has been discussed before: How can i change the cursor (image) in the whole windows OS

Run to cursor in VisualStudio 2012 [duplicate]

This question already has answers here:
What is the shortcut key for Run to cursor
(4 answers)
Closed 3 years ago.
I can not see the Run To Cursor in VS 2012 when I am developing in C#. I checked the tool bar and also DEBUG menu and in both places there is no such entry. Where can I find this option.
You can still use the keyboard shortcut Ctrl+F10. Otherwise you can right click on the line you want to run to and select Run to cursor.
You can add the button to the toolbar by selecting Add or Remove buttons on the Debug toolbar and then selecting Customize.

Categories