VS Code language support for Soplang, a programming language designed for Somali speakers.
This extension provides comprehensive language support for Soplang in Visual Studio Code:
- Syntax Highlighting: Full syntax highlighting for Soplang keywords, strings, comments, and operators
- Code Execution: Run Soplang files directly from VS Code
- Formatting: Automatic code formatting for Soplang files
- Hover Information: Documentation for Soplang keywords when hovering
- Spell Checking: Integration with Code Spell Checker for Soplang keywords
- Snippets: Common code snippets for faster development
- Error Detection: (Optional) Diagnostics for common syntax errors
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Soplang"
- Click Install
You can run Soplang files (.sop
or .so
extensions) in multiple ways:
- Context Menu: Right-click on a file and select "Run Soplang File"
- Keyboard Shortcut: Press
Ctrl+Shift+R
(orCmd+Shift+R
on Mac) - Command Palette: Press
Ctrl+Shift+P
and type "Run Soplang File" - Editor Title: Click the Soplang icon in the top-right of the editor
The file will be automatically saved before running.
This extension provides several configuration options:
By default, error detection is disabled. To enable it:
- Open Settings (
Ctrl+,
) - Search for "soplang"
- Check the "Enable Diagnostics" option
"soplang.enableDiagnostics": true
Automatic formatting on save is enabled by default for Soplang files. You can disable it in the settings:
"[soplang]": {
"editor.formatOnSave": false
}
All Soplang keywords are properly highlighted:
door
- Variable declarationhowl
- Function declarationqor
- Print statementakhri
- Read inputhaddii
,haddii_kale
,haddii_kalena
- Conditionalsku_celi
,inta_ay
- Loops- ...and many more
Hover over any Soplang keyword to see documentation, examples, and usage tips.
Type these prefixes and press Tab to use code snippets:
door
- Variable declarationhowl
- Function declarationif
- If statementfor
- For loopwhile
- While loop
- Visual Studio Code v1.95.0 or higher
- The Code Spell Checker extension (automatically installed)
Make sure the soplang
command is available in your PATH. If not, you can install it by following the instructions at Soplang GitHub repository.
If syntax highlighting is not working, try:
- Reload VS Code window (Ctrl+Shift+P > "Reload Window")
- Ensure the file has
.sop
or.so
extension
The source code for this extension is available on GitHub. Contributions are welcome!
This extension is licensed under the MIT License.