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 ?
Related
This question already has answers here:
XML Auto Commenting C# in Visual Studio Code
(3 answers)
Closed 8 months ago.
I'm on Visual Studio Code and I'm wondering what the shortcut is for creating documentation in C# for functions, variables, and classes since in VS Studio it's just pressing / three times.
Update Dec 16, 2020
This is now included in the default c# extension as of v1.23.8
You'll have to go to Preferences > Text Editor > Formatting and enable Format on Type
Or add the following in your settings.json file:
{
"editor.formatOnType": true,
}
Then adding three slashes /// above a member will auto-generate the XML doc comment.
I didn't find any shortcuts in VS Code. I tried search on Stack but it gave me "how to toggle the function comment on hover".
I looked up on the extensions and saw this
https://marketplace.visualstudio.com/items?itemName=k--kato.docomment
It works similar to Visual Studio where you have to press / three times.
This question already has answers here:
Unity Scripts edited in Visual studio don't provide autocomplete
(35 answers)
Closed 4 years ago.
I've been trying to get the intellisense autocompletion to work with Unity, but after a day of trying to make it work, no solution. Using C#
I'm not asking to solutions on this problem, but to ask where the documentation is found
Solution: #John
https://docs.unity3d.com/ScriptReference/Transform.html
This has all the scripts/functions that intellisense gives you.
Check THIS. You can find everthing there. For example, if you want to implement method from MonoBehavoiur use Ctrl+Shift+M or use Ctrl + Space with all suggestions.
This question already has answers here:
How to write comments / documentation for variables / fields / lists in VS 2010?
(6 answers)
Closed 8 years ago.
Is there a syntax in Visual Studio 2008 so that, in C# development, if one of my colleagues hovers over a variable, the tooltip brings up more information, like my comments? It displays that it's a local int, and while running displays a value, but I was wondering if there was a way to make it display a personal description. Sorry for the newbie question, but all my research kept bringing up very different things than what I was looking for.
This has a duplicate question, with an answer here
As I stated earlier one should use appropriate naming, and avoid using hungarian notation.
This question already has answers here:
How do you count the lines of code in a Visual Studio solution?
(26 answers)
Closed 9 years ago.
This might sound useless and has nothing to do with code quality, but just for the sake of information (and for fun to be honest :) )
Is there a way to retrieve in Visual Studio the amount of lines written in any kind of .Net project?
I think this is what you mean , hope it helps:
http://msdn.microsoft.com/en-us/library/ms165340.aspx
This question already has answers here:
C# hide and unhide comments
(6 answers)
Closed 9 years ago.
I am using the C# XML style of documentation in my latest project (eg using ///<summary> stuff). I find this makes the source code a pain to read as it just becomes so long. Is there a way in Visual Studio to auto-collapse just these or do I have to use the collapse to definitions and re-expand functions?
Take a look here at the following post, I think it should help
http://www.helixoft.com/blog/archives/30?n=collapse-all-xml-comments-in-vb-net-or-c