ZeroHour-Server is a language server written in TypeScript for Command and Conquor Generals Zero Hour INI. The server is intended to provide formatting, linting and code completion. Currently this is intended for Visual Studio Code only, however all functionallities will be server sided and can be utilized in other IDEs by creating an interface for communicating with the server over Json-RPC.
- Open Visual Studio Code
- Open the Extensions Tab
- Search for ZeroSyntax
- Click Install
- Click Reload
- Done!
ZeroSyntax language server supports the following functionallities:
- Formatting
- Diagnostics
- Code Completion
To format a ini file you can use the following command:
- Access it from the Command Pallette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
- Write:
> Format Document
- Press Enter
Diagnostics works out of the box. Any syntax errors will be highlighted in the editor.
The server supports context based code completion. This is done by analyzing the syntax tree and collecting possible completions based on the current context.
- Write some code
- Press Ctrl+Space
See CONTRIBUTIN
This projct is under the MIT LICENSE
As this is my first open-source project, if you have any ideas or suggestions please write to me on either Discord or mail. (Discord might be better)
Discord: ViTeXFTW#6644
Mail: [email protected]