formulahendry / formulahendry/vscode-code-runner

Adding a toggle that allows to remove " from wrapping $dir

Open
#1,223 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I'm writing in golang. I wanna use `clear && go run $dir.` to run the code. But i can't, because `$dir` wraps directory into `"`, which removes the possibility of doing `$dir/`, because it would become a mess: `"working/path/"somefile.go`
I need a way to write `some/path/.` where `.` stands for `any` in golang, that will run any file containing `main` function, without directly specifying it.

![Image](https://github.com/user-attachments/assets/6a03d46f-4122-4526-96ce-7a580847187b)

![Image](https://github.com/user-attachments/assets/bc602439-bf58-4f54-8336-d12712966452)

**Describe the solution you'd like**
Add an optional toggle to not wrap `directory` into `""` automatically. Instead let users do that themselves, like `"go": "clear && go run \"$dir.\"`, as this will add additional flexibility and fix the issue/problem i'm having

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.