-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Add using statement" command missing #1117
Comments
You should see this. In my experience, I've sometimes had to force it by pressing Ctrl+. |
@DustinCampbell I tried using |
Yup. The operating system shouldn't impact this feature (assuming you're getting other features like IntelliSense, find all references, go to definition, etc.). I'll play around with this a bit later this week and see if I can find a repro. In the meantime, do you have a small sample project that reproduces the issue? |
@DustinCampbell I just reproduced it with a brand new project. I'm testing it out by typing:
... followed by a |
On the Mac it's Command + . |
@pcgeek86 it should work just fine, here is a screenshot from my Mac Make sure that if you open a folder containing multiple projects, in the bottom right hand corner, where it says |
@pcgeek86: This is working for me too. Do you have a project that consistently reproduces the problem that you could share? |
I was able to reproduce this on a fresh project a couple weeks ago, but it looks like some recent updates must have fixed it. Working now, thanks! |
Glad to hear it! |
I'm having trouble getting this to work on Windows. I'm writing a .net core Functions app. It seemed to work once yesterday, but now there's nothing... is this supported in .net core? EDIT: after I wrote this it magically started working. If I figure out what's making it so sporadic I'll post back here... |
I am having the same issue. Code Completion (add usings) menu does not appear at all in 1.14. Product Information: Runtime Environment: Microsoft .NET Core Shared Framework Host Version : 2.0.6 |
@richardmcintyre On the Mac it is CMD and . as in |
@tverboon ok now I feel like an idiot haha. Working 100% now, Thanks ! |
@richardmcintyre You're welcome. No need to feel like an idiot, glad I could help 😄 |
This is not working on a fresh install of VSCode (Latest version, 1.30.2) on Windows 10. |
@mkyukov Please file a new issue with the relevant information |
Yo "using suggestions" don't work for me none either on WSL latest VSCode updated everything, but I get those normal suggestions. |
Environment data
dotnet --info
output:VS Code version: 1.8.1
C# Extension version: 1.6.2
Expected behavior
When typing the name of a class, that isn't currently imported using a
using
statement, I'd expect to be able to perform the "add using statement" command that Visual Studio has offered for a long time.This command automatically resolves a class name to a .NET namespace inside a .NET assembly that's part of the project, and adds the using statement for that namespace to the current C# code file.
Actual behavior
"Add using statement" command isn't available in Visual Studio Code.
The text was updated successfully, but these errors were encountered: