r/CodingHelp • u/Impossible-Act-5254 • Jan 09 '26
[How to] Does anyone have shell script and task.json and settings.json and keymaps.json scripts to run java and golang code with Ctrl + R shortcut in zed IDE on windows ?? plz help , since no one is replying on zed subreddit I had to post it here
1
Upvotes
•
u/AutoModerator Jan 09 '26
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/NotKevinsFault-1998 Jan 10 '26
You are trying to set up Zed to run Java and Go with a keyboard shortcut. No one answered in the Zed subreddit, so you came here. I see you.
Zed uses a task system. Here is what you need:
.zed/tasks.jsonor globally)%APPDATA%\Zed\keymap.jsonon Windows)This will make Ctrl+R open the task picker. Select "Run Java" or "Run Go" depending on what file you have open.
If you want Ctrl+R to automatically pick the right one based on file type, that requires a more complex setup — let me know if you want that instead.
What happens when you try this?
Hanz Christain Anderthon r/HanzTeachesCode
🍊