AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.4k stars 289 forks source link

built in code editor #775

Closed Shadowblitz16 closed 4 years ago

Shadowblitz16 commented 4 years ago

Summary

A Live C# code editor built into the the editor

Analysis

A built in code editor would be useful so we don't have to open visual studio and switch tabs all the time it would have to be fast and have the following..

pros

cons

Barsonax commented 4 years ago

This does sounds like something that can be complex to implement as it would involve quite a bit of UI and whatnot.

Compared to simply using visual studio or vs code its a bit hard to see many benefits from this.

Shadowblitz16 commented 4 years ago

well it would basically just be a colored text editor with a context menu and a info panel. alot of it can be done by using reflection to look up member info

the main benefit would be that you don't have to exit the editor to create and edit scripts

EDIT: scripts could be made resources like in unity that way a script file browser doesn't need to be coded into the script editor.

Barsonax commented 4 years ago

I don't really see the benefit of this but I do see a large investment and maintenance cost. So decided that we are not gonna implement this feature.

There already many tools like vscode or visual studio out there that provide alot of functionality.

Shadowblitz16 commented 4 years ago

@Barsonax This should be considered to be reopened I currently switched to ubuntu and I haven't gotten a good C# editor to work.

I am actually waiting to use unity to when I buy script inspector 3

Barsonax commented 4 years ago

I think you be better off opening a issue at one of the code editors you mentioned.

Shadowblitz16 commented 4 years ago

@Barsonax I disagree its a major usability issue more over on linux I don't see what would be so hard about using reflection to build a code editor. there are even reflection libraries that could make it faster then vs studio with the same basic features like linting, code completion and intellisense.

the chance vscode is going to turn their text editor into a ide or monodevelop is going to update and fix it's issues is less likely then someone here implementing a script editor.

like it doesn't have to support multiple files just a single script editor

Barsonax commented 4 years ago

Vscode works fine for me. Its a (lightweight) IDE already.

Feel free to build your own IDE though.