You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
VS Code version:
C# Extension version: 1.91
I have a stand alone .cs file with a class and some methods in it. Go to Definition doesn't seem to be working. I saw somewhere some comments about the feature requiring a project.json file, is that correct?
At first I thought this may have had something to do with the file not having been saved, but even after saving it, it still doesn't seem to work.
For some test data paste the below into a new window:
publicclassMyClass{privatevoidGetRecent(){// Get the thing}privatevoidLoad(){GetRecent();}}
Click on the GetRecent call in the Load Method and then hit F12
The text was updated successfully, but these errors were encountered:
In general, you'll need to have a project to get features like Go to Definition and IntelliSense working. It doesn't have to be a project.json file. A .csproj will work fine.
Making features work better in standalone files is on our backlog. We're tracking the work with #47.
Thanks @DustinCampbell I can work with that. I've transitioned from Sublime for my everyday editor to VSCode, and I'm enjoying it so far, this was one of my few, small, gripes. Cheers.
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.0-preview2-003131)
Product Information:
Version: 1.0.0-preview2-003131
Commit SHA-1 hash: 635cf40e58
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
VS Code version:
C# Extension version: 1.91
I have a stand alone .cs file with a class and some methods in it. Go to Definition doesn't seem to be working. I saw somewhere some comments about the feature requiring a project.json file, is that correct?
At first I thought this may have had something to do with the file not having been saved, but even after saving it, it still doesn't seem to work.
For some test data paste the below into a new window:
Click on the GetRecent call in the Load Method and then hit
F12
The text was updated successfully, but these errors were encountered: