Kurdy Language for Visual Studio Code
This extension provides language support for the Kurdy Programming Language in Visual Studio Code.
Features
- Syntax highlighting for Kurdy files (
.krd )
- Code snippets for common Kurdy constructs
- Auto-completion for Kurdy keywords, built-in functions, and user-defined symbols
- Hover information for Kurdy keywords and functions
- Run and debug Kurdy files directly from VS Code
Installation
You can install this extension in several ways:
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Kurdy Language"
- Click Install
From VSIX File
- Download the
.vsix file from the releases page
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click on the "..." menu in the top-right corner
- Select "Install from VSIX..."
- Choose the downloaded
.vsix file
From Source
- Clone the repository:
git clone https://github.com/kurdy-team/vscode-kurdy.git
- Navigate to the directory:
cd vscode-kurdy
- Install dependencies:
npm install
- Package the extension:
vsce package
- Install the generated
.vsix file as described above
Usage
Syntax Highlighting
The extension automatically provides syntax highlighting for files with the .krd extension.
Code Snippets
Type any of the following prefixes and press Tab to insert the corresponding snippet:
chap - Print to console
eger - If statement
egerdin - If-Else statement
egerhekedin - If-Elif-Else statement
heta - While loop
bu - For loop
kirdar - Function declaration
bizivrine - Return statement
pool - Class declaration
direjikirin - Class with inheritance
hewlde - Try-Catch block
jimare - Integer variable declaration
nivesin - String variable declaration
ducar - Float variable declaration
logic - Boolean variable declaration
group - Array variable declaration
ferheng - Dictionary variable declaration
tish - Object variable declaration
main - Main function with execution
header - File header comment
Auto-Completion
The extension provides auto-completion for:
- Kurdy keywords
- Built-in functions
- User-defined variables, functions, and classes
Hover over Kurdy keywords, built-in functions, and constants to see their descriptions.
Running Kurdy Files
To run a Kurdy file:
- Open a Kurdy file (
.krd )
- Press Ctrl+F5 or use the context menu and select "Run Kurdy File"
To run a Kurdy file with debugging:
- Open a Kurdy file (
.krd )
- Press F5 or use the context menu and select "Run Kurdy File with Debug"
Requirements
- Visual Studio Code 1.60.0 or higher
- Python 3.6 or higher
- Kurdy Programming Language installed
Known Issues
- The extension currently does not support debugging with breakpoints
- Some advanced language features may not be properly highlighted
Release Notes
1.0.0
- Initial release
- Syntax highlighting
- Code snippets
- Auto-completion
- Hover information
- Run and debug commands
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This extension is licensed under the MIT License.
| |