for example if i write a text:
( then i get auto (),
next example:
" then i get auto complete by vs: ""
how could i disable this function in visual studio 2013?
i would stay only with ("an exception") for {
i know now that i can disable it with:
Tools -> options -> text editor -> general and the option: automatic brace completion
but now i would add extension for {, that it can be complete in vs for result {}
Tools > Options > Text Editor > C# > General
Uncheck Automatic brace completion
I've tested this on Visual Studio 2013.
This will turn off all auto-completions. There doesn't seem to be an option to add an exception.
Related
How can I disable the editor parameter-name text which has started to show since a recent update? In this array example "index:" is shown.
This is called "Inline Hints" in Visual Studio. You can customize which are shown by going to
Tools Menu > Options > Text Editor > C# > Advanced > "Inline Hints" group
Turn the setting on and off as you like. In your particular case, you're looking for the "Show hints for indexers" option.
Anyone know how to add the = key(or any other character) to the Member List Commit Characters for visual studio 2019 Intellisense using C#.
For C/C++ it's done like this, incase someone stumbled here looking for this
Tools-> Options -> Text Editor -> C/C++ -> Advanced-> Intellisense -> Member List Commit Characters -> [text box of characters]
I have updated to visual studio 2017 15.8 yesterday and found that my some of my fields, methods and classes have strange eye-straining white lines that look like this...
So I wanted to know how to disable them completely?
Tools > Options > Text Editor > C# > Advanced > Uncheck "Show Procedure line separators"
I'm using Visual Studio 2017 to edit the scripts for Unity 3D Project.
In a script, I want to create a new function "Move", but I get a problem with autocomplete.
If I write "public void Move"
I get a a proposal "OnAnimatorMove", but I don't need this function!
Now, after "Move" I enter a space character " ", but my function name is then automatically replaced by "OnAnimatorMove" and the "{","}" are automatically inserted.
Same happens, if I try to insert "(" character after "Move".
How can I prevent it?
U can click escape to disable the autocompletion or u can disble it all together by going to
VS > Tools > Options > Tools for unity > and under 'code edition' disable Unity massage code completion.
after that restart
I can solve it, going to Edit->Preferences->External Tools, and in External Script Editor, select Visual Studio 2017 (Enterprise)
Using: Visual Studio Pro 2013
Previous research: [1], [2], [3]
I'm used to working in Java with Eclipse.
My usual flow is:
object. CTRL+SPACE + ENTER
which autocompletes the method and places the correct curly brackets & method inputs in there:
object.myMethod();
or
object.myMethod(input1,input2);
I'm trying to get the same behaviour with VS in C#. I can get the method, but it doesn't want to include the final brackets for some reason.
I get:
object.myMethod
Is there a way to enable this?
When doing autocomplete, instead of just hitting ENTER, you can instead press the key combination "Shift + (" and it will autocomplete and add () all in the one.
You can turn on Automatic Brace Completion at: Tools->Options->Text Editor->C#->General .
Tools->Options->Text Editor->C#->IntelliSense is for auto-completion of variables and keywords.
With the current version of Visual Studio 2019 (Version 16.10.x), press the Tab key twice to insert arguments (also brackets). This is an experimental feature and needs to be enabled in Options -> Text Editor -> C# -> IntelliSense -> Tab twice to insert arguments (experimental).
Even though the question was for Visual Studio 2013, on Visual Studio 2017 you can install ReSharper plugin by JetBrains that among other things, it automatically add brackets to methods when auto-completing.