phasephasephase / OnixLauncher

open source :)
60 stars 52 forks source link

naming conventions and code style #4

Closed phasephasephase closed 2 years ago

phasephasephase commented 2 years ago

we should come up with a naming convention for this thing

oh and code style too

xDidntPot commented 2 years ago

public function sendResponse(): string { return "EZ"; }

Zeyrox1090 commented 2 years ago

code

JustSxm commented 2 years ago

2 Space Tabs aVariableName AFunctionName(); use CodeMaid.

phasephasephase commented 2 years ago

i think rider's default naming convention and style are good except constant variables:

UPPER_SNAKE_CASE

the rest: _privateField PublicField (or property) ClassName NamespaceName MethodName(firstParam, secondParam ...) methodVariable

xDidntPot commented 2 years ago

What's wrong with const var UPPER_SNAKE_CASE (Rider)?

phasephasephase commented 2 years ago

What's wrong with const var UPPER_SNAKE_CASE (Rider)?

oh i meant that rider doesn't do UPPER_SNAKE_CASE, instead they do PascalCase for constant fields

xDidntPot commented 2 years ago

Pretty sure you can edit Naming Convention in Rider.

xDidntPot commented 2 years ago

image

xDidntPot commented 2 years ago

Use Rider instead of Visual Studio!