Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrarshakhi/quick-run-in-terminal
A microsoft visual studio code extention to run various programming languages.
https://github.com/abrarshakhi/quick-run-in-terminal
coderunner nodejs vscode vscode-extension
Last synced: 13 days ago
JSON representation
A microsoft visual studio code extention to run various programming languages.
- Host: GitHub
- URL: https://github.com/abrarshakhi/quick-run-in-terminal
- Owner: AbrarShakhi
- License: gpl-3.0
- Created: 2024-12-24T20:17:46.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-01-18T11:58:33.000Z (21 days ago)
- Last Synced: 2025-01-26T09:17:20.218Z (13 days ago)
- Topics: coderunner, nodejs, vscode, vscode-extension
- Language: JavaScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=AbrarShakhi.quick-run-in-terminal
- Size: 1.57 MB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Quick Run in Terminal
This is a `vscode` extension to run `C`, `C++`, `python`, `Rust`, `java`, `javascript` files in vscode terminal.
It just `cd` into the file directory. then clears the terminal. Then runs the program.## how to run?
Install this extension.
First open a `C`, `C++`, `python`, `rust`, `java`, `javascript` files. Do one of these following.1. use shortcut `Ctrl+Alt+C` to run the file
2. right click the Text Editor and then click `Compile and run` in editor context menu
3. click `Quick Run` button in title menu
4. Open `command palette` and search `Quick Run` abd hit enter.---
## Demo
![demo GIF](./res/snapshorts/demo.gif)
## Features
- compile and run `C/C++` file
- compile and run `python` file
- compile and run `java` file
- compile and run `rust` file
- compile and run `javascript` file---
## Requirements
A compiler/interpreter for your favorite language.
> **❗️ Important**: default C/C++ compiler is set to `gcc`/`g++`, For python it is set to `python`. If you want to use different compiler/interpreter see [configurations example](#configurations).
---
## Configurations
### default
```jsonc
{
// clears the terminal before run.
"quickRunInTerminal.clearBeforeRun": true,
// If false saves only active file, otherwise saves all files.
"quickRunInTerminal.saveAllFilesBeforeRun": false,
// empty string means name of the program followed by exe/out
"quickRunInTerminal.binaryOutputName": "",
// C/C++
"quickRunInTerminal.C_compilerPath": "gcc",
"quickRunInTerminal.Cpp_compilerPath": "g++",
// Python
"quickRunInTerminal.Python_interpreterPath": "python",
// Rust
"quickRunInTerminal.Rust_compilerPath": "rustc",
// Java
"quickRunInTerminal.Java_CompilerPath": "javac",
"quickRunInTerminal.Java_Runtime": "java",
// JavaScript
"quickRunInTerminal.JavaScript_interpreterPath": "node",
}
```Lets say you want to use `python3` instade of `python` as interpreter.
- go to settings.
- search `quick run in terminal`.
- Find the section where says `Quick Run In Terminal: Python_interpreter Path`.
- set that to `python3` as python interpreter.For `C/C++` find `Quick Run In Terminal: C_compiler Path` or `Quick Run In Terminal: C_compiler Path` to `gcc`/`clang`/`g++`/`cc` or whatever.
### Examples
```json
{
"quickRunInTerminal.Python_interpreterPath": "/home/user/bin/python3",
"quickRunInTerminal.Python_interpreterPath": "python3",
"quickRunInTerminal.Cpp_compilerPath": "/usr/g++",
"quickRunInTerminal.C_compilerPath": "clang"
}
```> NOTE: It says `path` but if the program is accessable from anywhere then you can just put program name.
---
## Bugs and Issues
- report bugs/issues here [github issues](https://github.com/AbrarShakhi/quick-run-in-terminal/issues)
## Credits