this post was submitted on 23 Sep 2023
16 points (100.0% liked)

Godot

6022 readers
33 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
 

Hey guys, unity refugee here:

I'm gonna try to port my 7 year game to Godot, lets see how it goes. Since it's a massive project and I am coming to unity I have decided to use C# instead of GDScript (which I did try for a while and may even use in some scripts).

I have had two crazy last days working on how to set up intellisense and Debugging on my linux machine for Godot (it should work similar for windows) for C#. So here is a guide of how I managed, in case someone else faces the same problem to save them some headaches:

1.Follow this guys tutorials which are amazing especially to sort the debugging out:https://www.youtube.com/watch?v=xKjfjtLcWXw&t=279s (Linux)

https://www.youtube.com/watch?v=c_cdAYDHR0E&t=58s (windows)

He will tell you to only install the C# extension on VSCode

If you still have issues you may try the following:

  1. if you have many different versions of .net uninstall themFrom discover I installed .net core sdk only one, otherwise the variables get mixed up.

  2. I also uninstalled Vs code and all the configurations and settings https://code.visualstudio.com/docs/setup/uninstall, and installed Vs code from the snap store.

  3. Put the exec file shortcut:

    Open the Editor Settings

    Select Text Editor > External

    Make sure the Use External Editor box is checked

    Fill Exec Path with the path to your VS Code executable

    /snap/bin/code (for Linux)

    Fill Exec Flags with {project} --goto {file}:{line}:{col}

5 .A the key part is when/if you lose instellisense, press ctrl+shift+P-> .Net generate assets to build and debug

Let me know if you need more help or I am missing something please. I so glad this is working now :)

top 2 comments
sorted by: hot top controversial new old
[โ€“] magikmw@lemm.ee 4 points 1 year ago (1 children)

Awesome, I may find some time this weekend to test it out. I'm a gdscript user mostly, but I like figuring out how stuff works just in case.

Was so happy when I managed so that I could go back to coding