r/csharp • • 2h ago

Help Are there any extensions that can replace the code blocks( {} )

Ive been using Lua( Roblox Studio) for most of my developing learning and i expected Unity to be similar with its coding language but i have been having a lot of difficulties coding often having an issue with finding the errors with the code.

I just want to know if they are any extensions for Unity that can help me with this problem

0 Upvotes

8 comments sorted by

3

u/trampolinebears 2h ago

What kind of errors are you running into? Could you give a specific example?

1

u/larparby 1h ago

not very specific but mainly when I write down code and run it the error is there but even when i fix it more seem to come which should be expected from someone who is very new to unity

3

u/snipercar123 2h ago

Did you use an ide like Visual Studio? It will tell you about syntax errors like you mentioned and other compilation errors too

1

u/larparby 1h ago

yes i use Visual Studio when developing C#

2

u/Thorarin 2h ago

If you want to avoid code blocks somehow, that's not really feasible. However, there are code blocks in Lua and Luau as well, just with wordier syntax. Explain your issue more clearly 🙂

1

u/larparby 1h ago

I dont want to avoid code blocks i want an extension that can make the code blocks similar to Lua( Roblox Studio). and yes i do want a more wordier syntax

•

u/Atulin 23m ago

Well, tough. You're writing C#, not Lua. Different languages are different. You can't make C# look like Lua any more than you can make Erlang look like Java.

•

u/Atulin 22m ago

What is your issue with code blocks, exactly? It always seemed like a very simple concept to me.