Display namespace classes in visual studio (C #)

I am a Java programmer and am just starting to use Visual Studio for programming in C #. In the Java IDE, for example Eclipse, if I do not know the class name in the package, I can simply enter a period (.) After the package name, then I will get a list of all the classes in this package. How can I set up visual studio to do this, say, if I click on the namespace name in a file (for example, using System) or add a dot after the namespace, will all classes in that namespace be displayed somewhere?

+4
source share
3 answers

If you want to know, first make sure that Ctrl + SPACE is not used by other things like IME. Then follow this shortcut for IntelliSense in the editor. Visual Studio displays all classes that you can access in context. It may not work like Java, but most people like me find it enough to move on.

To better understand each namespace, I'm more used to hitting F1 in the namespace to start MSDN.

+1
source

As far as I remember, the same scenario works. Type System. and Visual Studio should show the Intellisense window with its contents. If it does not appear, you can try Ctrl + Space to make it appear.

If it still does not show anything, you may need to add the assembly reference in the DLL that contains this namespace to your project.

Obviously, if the namespace is System, you do not need to add a link, as it is already added by default.

Also relevant: View Object Explorer in Visual Studio.

+2
source

Visual Studio's intelligence is good enough for you to have only the right link added to your assembly. Or you can try Ctrl + Space to force it.

0
source

Source: https://habr.com/ru/post/1310081/


All Articles