- Notifications
You must be signed in to change notification settings - Fork 0
PowerShell
Kyle La Barge edited this page Sep 20, 2019
·
1 revision
| Identifier | Case | Examples and notes |
|---|---|---|
| Language keyword | Lower | try, catch, foreach, switchNo language other than VB uses mixed-case keywords |
| Process block keyword | Lower | begin, process, end, dynamicparameterAs above |
| Comment help keyword | Pascal | .Synopsis, .ExampleReadability |
| Package or module | Pascal | PascalCase |
| Class | Pascal | PascalCase |
| Exception | Pascal | PascalCase |
| Global variable | Pascal | $PascalCase |
| Local variable | Camel | $camelCase, $args, $this |
| Function | Pascal | PascalCase |
| Function or method argument | Pascal | PascalCase |
| Private function | Pascal | PascalCase(in modules) |
| Constant | Pascal | $PascalCase |
| Identifier | Camel | Lower | Pascal | Examples and notes |
|---|---|---|---|---|
| Language Keyword | ✅ | try, catch, foreach, switchNo language other than VB uses mixed case keywords | ||
| Process block keyword | ✅ | begin, process, end, dynamicparameterAs above | ||
| Comment help keyword | ✅ | .Synopsis, .ExampleReadability | ||
| Package or module | ✅ | PascalCase | ||
| Class | ✅ | PascalCase | ||
| Exception | ✅ | PascalCase | ||
| Global Variable | ✅ | $PascalCase | ||
| Local Variable | ✅ | $camelCase, $args, $this | ||
| Function | ✅ | PascalCase | ||
| Function or method argument | ✅ | PascalCase | ||
| Private function | ✅ | PascalCase(in modules) | ||
| Constant | ✅ | $PascalCase |