❔ Visual Studio Code being weird.
I just got back into coding using Visual Studio Code and I do a test to see if there's any extensions I need to install for C# is it something I did wrong because I click run and nothing comes out of the output. Am I using the wrong language?
105 Replies
What extension are you using? Is it the "C# Devkit"?
if not, thats the one you want
Ok ill see
Yes I have DevKit installed
Do I need to uninstall "C# Godot"?
I dunno. I don't use VSC myself
Do you have a project?
Ah yes, it looks like you opened just a .cs file
I.e. did you open a folder with a csproj file in it?
C# is project based, you need to open the project
Omfg im so dumb
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
you do not need that with the C# dev kit
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
did you update the C# extension
you need to update it to the preview version
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
omnisharp error? doesnt that mean the old extension is still active?
you need both extensions
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Also, you should really be using Visual Studio and not Visual Studio code if you are still learning C#. Visual studio Code is not beginner friendly for exactly reasons like this.
But in short you need to add a
.vscode/launch.json
and .vscode/tasks.json
files in the root of your folderUnknown User•17mo ago
Message Not Public
Sign In & Join Server To View
it's 100% a saved file, it wouldn't have .cs otherwise
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
what kind
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
im so lost
Microsoft
Download .NET (Linux, macOS, and Windows)
Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET.
you need to install dotnet sdk
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
i have that
evidently not
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
did you jsut install it?
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
hm ok ill do it again
you may need to restart VSC/terminal
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
damn u lazy 😛
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
this right?
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok
This correct?
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok but that right?
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
so now i can type the way longer version of that code and it'll work
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
I ran it and it didn't work ;-;
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
am ik and i was showing you there was no problems
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
im going to die X_X
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
idk it just being dum
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
oh hey i figured it out
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
tysm
can you give me a challenge and see if i can do it
Make Half Life 3
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Collections of application ideas that anyone can solve in any programming language to improve coding skills:
https://github.com/dotnet/dotnet-console-games
https://github.com/karan/Projects
https://github.com/florinpop17/app-ideas
bro
never knew bout that
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
BRO
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
;-;
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
im in way over my head i dont understand half of this
did you run it?
yes nun happened
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
oop
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
please clone the entire repo of
dotnet-console-games
rather than copy out the code one file at a time. if you clone the entire repo and open it you will see:all the games in the debug drop down
you are probably missing
"console": "externalTerminal",
in your launch.json
and that is why it may not be running the gameyep you need
"console": "externalTerminal",
The Visual Studio Code debugger is trashi can tell
open your
launch.json
file and add "console": "externalTerminal",
that will tell Visual Studio Code to launch the app in an external console window rather then the internal debuggerUnknown User•17mo ago
Message Not Public
Sign In & Join Server To View
I'm talking about the debug console
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
dude the amount of confusion im in is astronomical
are you available to hop into a voice channel?
yuh but my pc mic dont work
no worries. I can give you some pointers on using that repo with VSC in voice if you would like
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
#dev-vc-0
This was a funny read
Visual Studio Code is just a nightmare for new devs trying to learn C#... 😦
i do not think that is true
i think it was just severely overcomplicated
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.