https://github.com/themaster1127/code-snippet-runner
The Code-Snippet-Runner project is designed to execute code snippets conveniently using hotkeys based on the file type. It opens a window with a text box to paste your code and then runs it. The script is configured via the settings.ini file where you can customize the hotkeys.
https://github.com/themaster1127/code-snippet-runner
Last synced: 2 months ago
JSON representation
The Code-Snippet-Runner project is designed to execute code snippets conveniently using hotkeys based on the file type. It opens a window with a text box to paste your code and then runs it. The script is configured via the settings.ini file where you can customize the hotkeys.
- Host: GitHub
- URL: https://github.com/themaster1127/code-snippet-runner
- Owner: TheMaster1127
- License: mit
- Created: 2024-04-20T23:58:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T11:40:23.000Z (over 2 years ago)
- Last Synced: 2025-03-21T04:13:48.314Z (over 1 year ago)
- Language: AutoHotkey
- Homepage:
- Size: 672 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project: Code-Snippet-Runner
### Overview
The **Code-Snippet-Runner** project is designed to execute code snippets conveniently using hotkeys based on the file type. It opens a window with a text box to paste your code and then runs it. The script is configured via a `settings.ini` file where you can customize the hotkeys.
### Usage
#### Running Code
- **HTML/JavaScript**: Press `Ctrl+Shift+Alt+J` to run the code snippet in an HTML or JavaScript file. The script automatically detects if the file is HTML or JavaScript.
- **Python**: Press `Ctrl+Shift+Alt+P` to execute the code in a Python file.
- **AutoHotKey**: Press `Ctrl+Shift+Alt+A` to run the AutoHotKey script.
- **HTH**: Press `Ctrl+Shift+Alt+H` to run the HTH script.
Additionally, in the window, you can press `Ctrl+Enter` to activate the button.
#### Configuring Hotkeys
You can modify the hotkeys by editing the `settings.ini` file.
### Installation
1. Ensure you have AutoHotKey installed on your system.
2. Download or clone this repository.
3. Double-click `Code Runner.ahk` to start the script.
### Customization
- **Editing Hotkeys**: Open `settings.ini` in a text editor to modify hotkeys. Follow the format specified in the file for defining new hotkeys.
### Configuration (`settings.ini`)
```ini
[Hotkeys]
HTH=!+^H
HTML_JS=!+^J
AutoHotKey=!+^A
Python=!+^P
```
---