-
-
Notifications
You must be signed in to change notification settings - Fork 226
Coding Guidlines
lumapu edited this page Oct 19, 2022
·
3 revisions
These are our coding guidelines.
Please provide new code to our most recent development branch and not directly to the main branch.
We use 4 spaces, not tabs.
- Use camelCase for
function
andmethod
names - Use camelCase for
property
names andlocal variables
- Use whole words in names when possible
- Use "double quotes" for strings
- Open curly braces always go on the same line as whatever necessitates them
- Parenthesized constructs should have no surrounding whitespace. A single space follows commas, colons, and semicolons in those constructs. For example:
for (let i = 0, n = str.length; i < 10; i++) {
if (x < 10) {
foo();
}
}
function f(x: number, y: string): void { }
Source: https://github.com/microsoft/vscode/wiki/Coding-Guidelines