K
Kamen
Guest
I am using the continually-auto-updating Visual Studio 2017, Community Edition (so, latest version) with both C++ and C# (no other languages installed). I have a few extensions, most-notably (and probably the only relevant one), the Productivity Power Tools kit. No Resharper, and I actually had to uninstall several extensions that came with VS, or that were pushed against my will upon updates.
One particularly annoying "feature" - and one that has no mention anywhere I've searched - is the automatic addition of a matching set of curly braces, on separate lines and with a blank line in between, after adding an "else" statement.
Example:
if(....)
{
....
}
else // The following is added automatically; I want nothing, just the new line I tried to request by hitting Enter
{
}
If I let IntelliSense complete it by hitting Enter, in C++ it will happen; not in C#, unless I hit Tab there. Not to mention that completion of IntelliSense works with a Tab in C# but with Enter in C++, and I'm sick and tired of trying to figure out what setting does what, and how they work together, and what will ultimately happen with the current combination of settings, for each language. I can only hope that there is some easy way to get it so that I can get the desired behavior without having to change a bunch of other settings in the hopes that it would produce the desired result. To make things worse, I remember some time ago inquiring about some setting and finding a post saying that it was impossible to do and/or was a bug in VS that wasn't going to be corrected (and do I have a few of those logged at Connect!) Let's hope that's not the case with this one.
I'd appreciate any insightful suggestions.
Kamen
Currently using Visual Studio 2017, native C++; (Windows API) and C# (.Net, WPF), on Windows 10 64-bit; Mountain Time zone.
Continue reading...
One particularly annoying "feature" - and one that has no mention anywhere I've searched - is the automatic addition of a matching set of curly braces, on separate lines and with a blank line in between, after adding an "else" statement.
Example:
if(....)
{
....
}
else // The following is added automatically; I want nothing, just the new line I tried to request by hitting Enter
{
}
If I let IntelliSense complete it by hitting Enter, in C++ it will happen; not in C#, unless I hit Tab there. Not to mention that completion of IntelliSense works with a Tab in C# but with Enter in C++, and I'm sick and tired of trying to figure out what setting does what, and how they work together, and what will ultimately happen with the current combination of settings, for each language. I can only hope that there is some easy way to get it so that I can get the desired behavior without having to change a bunch of other settings in the hopes that it would produce the desired result. To make things worse, I remember some time ago inquiring about some setting and finding a post saying that it was impossible to do and/or was a bug in VS that wasn't going to be corrected (and do I have a few of those logged at Connect!) Let's hope that's not the case with this one.
I'd appreciate any insightful suggestions.
Kamen
Currently using Visual Studio 2017, native C++; (Windows API) and C# (.Net, WPF), on Windows 10 64-bit; Mountain Time zone.
Continue reading...