I'm new to Rider and in Visual Studio I can press Alt+Enter to correct something to what Visual Studio suggests.
I've tried to illustrate the situation in the picture below. So the editor (ReSharper (?)) suggests I use the wording MyRoom instead (which makes sense for methods), but is there a command to auto correct this as with visual studio 2017? And in that case, what is its name? I've been trying to find it in the keymap but cant find it
I am not quite sure, but there is an extension call IntelliSpell
Easy-to-use, one-click operation to spell-check your Microsoft Visual Studio files, projects, or entire solution.
you can find it here: https://marketplace.visualstudio.com/items?itemName=GrapeCityinc.IntelliSpell-SpellCheckerforVisualStudio
In the Rider help it is written, that you can also use Alt + Enter. You could also try Ctrl + .. If I remember correctly it worked in Visual Studio with Resharper.
It's apparently called "Show Intention Action" and was bound to something weird on MacOS! I've bound it to cmd+enter now. Thank you for your help though! :-)
Related
As a former Java developer who just switched to learn some C# I find it really irritating that Visual Studio 2022 AutoCompletes its suggestions on pressing anything from a simple "." to "Tab" and "Space" and "Enter".
I would like to keep AutoCompletion feature but make it less aggressive and "enforced". For example I would like to make it work only when I press "Enter". Is there any way I can achieve this?
I tried some googleing, but failed to find anything useful. There is a way to make it work on Tab. But I want it to work on Enter.
I don't think it's possible to change the hotkey for autocomplete in Visual Studio to Enter (at least from the Visual Studio options menu). See this similar question for more details - How to change hotkey for Visual Studio 2022's Intellicode Auto Completion
I am using VS Mac 7.7.2 Build: 21 with Unity3d. The following happen when trying to use IntelliSense:
IntelliSense suggest "_card" after I typed "_ca":
I press return:
And IntelliSense do not complete the property name but instead create a new line without completing the propert name.
This have started after I updated VS.
Anyone familiar with this problem and have a solution?
>>>>>>>>>> SOLVED <<<<<<<<<<
Problem solved, for me, in Visual Studio 7.7.3 Build:43.
It's a known, but still not fully resolved bug: https://developercommunity.visualstudio.com/content/problem/41831/c-autocomplete-enter-inserts-new-line-instead.html
That is how Visual Studio for Mac is working. It is product bought by Microsoft and it doesn't necessary have to be compatible with Visual Studio for Windows practices as much of it was made before Microsoft took over.
I saw this video and i wanted to know how i could make the IBeam cursor have those lines come out of it in Visual Studio? thanks :)image of what i mean
You will need to install an extension in Visual Studio.
Try to download and install one of these:
https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer
https://marketplace.visualstudio.com/items?itemName=TomasRestrepo.Viasfora
I hope it been useful for you.
I am looking for a plugin for VS 2012 that would show me which lines of code have been modified or created since the last build. Anyone know of something for this?
You could use a Visual Studio SVN plugin to view changes visually within Visual Studio.
EDIT: as mentioned in my comment below, the next closest thing to what you seek is change tracking. As you bring up in your comment it will only work for your purposes if the only time you save is when you build. I tend to save as often as possible though.
And yes, the default behavior of VS is to automatically save when you build.
I do need a good About Dialog for my app, something like the Visual Studio About Dialog. I'm kinda too lazy to design it myself and make all the properties.
Does anybody know if there's a precasted one somewhere? Google didn't help me at all...
C# + Winforms
If you're using Visual Studio, right-click on your project in the Solution Explorer, and choose "Add New Item". One of the items you can add is an About Box... with properties of your program already included.
I'm not sure if this is true in the Express editions, but it's there in the full-blown versions of Visual Studio.
It's not exactly what you're looking for, but this is a good start. All you would need to do is alter the constructor to display exactly what you want.