Code Completion Xamarin Studio - xamarin-studio

Is there a way to enable automatic generation of a closing curly bracket when an opening curly bracket is typed in Xamarin Studio?
In other words, when I type },in all the other IDE's I've used a { is automatically generated. That doesn't seem to be the case in Xamarin Studio.

You can configure Xamarin Studio to automatically insert a closing curly brace when an opening curly brace is entered in Preferences - Text Editor - Behaviour - Insert matching brace.
Going the other way of entering a closing brace and having Xamarin Studio automatically insert an opening brace does not seem to work though.

Related

Automatically place braces like Visual Studio

When I use braces in Visual Studio, I press Enter and the brackets are automatically positioned like this:
When I use them in IntelliJ, I have to apply formatting (Ctrl+Alt+L) to make them move:
Is it possible to get this behaviour in IntelliJ? I don't want to have to spam autoformat to make my code the way I want.
It's worth noting that I've specified that my brackets go on the next line in settings:
Filled the bug request to IntelliJ IDEA bug tracker: https://youtrack.jetbrains.com/issue/IDEA-286306
Feel free to follow.
For the time being, you can toggle reformat manually.

VS Code Keyboard shortcut and Vim

I created a keyboard shortcut for Matchit: Jump Items to run on shift+5 (%) when editorTextFocus.
I diid this so that I could easily jump from opening to closing tag in HTML. I use VSCode in Vim mode where that key binding will jump from opening to closing brackets/braces/quotes/whatever by default.
My problem is that now I cannot get a percent sign to appear in my code as when I type it, the cursor jumps to the closest closing element (tag, brace, bracket, etc). When I removed that shortcut, not only does it not jump from opening to closing tag, it no longer works for braces/brackets/quotes/whatever. Not sure why that is since it is built into Vim and does not require Matchit.
Is there a way to specify that the key binding should not apply when my cursor is in insert mode? or is there a better way to configure things so that I get that functionality (jumping to closing tag, quotes, paren, brace, etc), but can also actually type the % character?

In Visual Studio 2019, how can I configure the VB.NET code editor's IntelliSense not to insert a newline when I press enter?

Steps I took:
Start typing some code element, e.g. SqlDataR
Press enter to accept IntelliSense's suggestion of SqlDataReader
Oh no! I got a newline! This doesn't happen in the C# editor... how can I configure the VB.NET editor to behave like the C# editor and not insert a newline when I do this? Otherwise I'll have to retrain myself to accept suggestions using tab instead of enter...
There is an answer to that question here but it looks like it requires you to download a paid plugin

Bug caused by non printable character embedded by Visual Studio

I have some cross platform code that I regularly share between Visual Studio and Xcode (and Vim).
At some point, I modified a string in this code, using Visual Studio. That string somehow ended up with an errant '^H' control character (ASCII 0x08) embedded in it.
The trouble is, this control character is non-printable. It wasn't visible in Visual Studio, nor was it visible in Xcode.
Viewing the source in Vim, I could clearly see the problem. Vim helpfully displays the control character, and problem solved.
Interestingly, when viewing the source via Xcode I can navigate through the string with the cursor - it clearly knows the character is there, as the cursor remains in the same location when traversing over the non-printable character.
So..
How can I prevent Visual Studio from inserting errant control characters in the first place? I presume this is a bug and should never happen.
Is there any way to have Visual Studio display such control characters, without also showing spaces/tabs?
Is there any way to have Xcode display such control characters, without also showing spaces/tabs?
Both environments have an equivalent 'Editor->Show Invisibles' but it's a bit of an all or nothing.. It's not something I want on all the time.

MonoDevelop Complete Brace Close

I've started using MonoDevelop again, and one thing driving me nuts is having to complete every brace (my old IDE did it for me).
Is there a way to have MonoDevelop autocomplete brace closures?
E.g. if I type
if(bool) {
Then it will auto complete the closing brace
}
In the Preferences dialog under Text Editor - Behavior there is an Insert matching brace option.
This auto completes the brace, but it puts it next to the first opening brace so you will have to press return to move it into the location you have in your source code. The auto completion of the brace does not seem to indent the code at the same time.
On Mac as answered by #MattWard
On Windows 10 got to Tools > options > Text Editor - Behaviour and there is an Insert Matching Brace option just enable it
Tested on Mono 5.9.6