Article
Stop sending half a prompt
You press Enter for a new line, and your half-written prompt is already on its way to the AI. Here's a free, ten-minute setup that lets you write every prompt in your favourite editor, with one shortcut in and one shortcut out.
Everybody who writes decent prompts knows the feeling. You're three lines into a careful instruction. You press Enter to start a new paragraph. And there it goes: half an instruction, sent. The agent happily starts working on the wrong thing.
Yes, Shift+Enter gives you a new line. But good prompts aren't one-liners. They have context, steps, examples and constraints. They deserve more than a small chat box where one wrong key sends everything.
So we fixed it for ourselves. Now we're sharing it.
In the video we use Claude, but it works the same in any tool where all you get is a simple text box: ChatGPT, Codex, Copilot and many more.
What we want to achieve
One simple, fast workflow that works in every text box on Windows: Claude desktop, Claude Code, ChatGPT, Copilot, your browser, your ticketing tool.
- You're in a text box and press Ctrl+Alt+E.
- Your editor pops up instantly, with whatever was already in the box.
- You write. Press Enter as often as you like. Nothing gets sent.
- You press Ctrl+Enter. The editor closes and your prompt lands in the text box, ready for you to check and send.
Changed your mind? Ctrl+Alt+Q closes the editor and leaves the text box untouched.
No leftovers: the temporary file is deleted, your clipboard is restored and no "do you want to save?" dialogs pop up. Fast and easy. That's the whole point.
What you need
Two things, both free:
- AutoHotkey v2: a small, open-source Windows tool that runs the shortcuts. Download it from autohotkey.com.
- An editor of your choice:
- Windows Notepad: already on your PC. The fastest way to get started.
- Notepad++: free, open source and very fast. Download it from notepad-plus-plus.org.
- Visual Studio Code: free, with great Markdown support. Download it from code.visualstudio.com.
Install in five minutes
Step 1: Install AutoHotkey v2. Download it from autohotkey.com and run the installer. Make sure you pick version 2.
Step 2: Download the script for your editor.
- Script for Notepad
Nothing else to install. Works with classic Notepad and the tabbed Windows 11 Notepad, and only closes its own tab. - Script for Notepad++
Opens a separate, session-free Notepad++ window, so your other files stay untouched. - Script for Visual Studio Code
A stripped-down, extension-free VS Code built for speed. More on that below.
Pick one. They all use the same shortcuts, so run only one at a time.
Your browser warns that the file may not be safe? That's normal for
.ahkfiles: browsers flag scripts they don't see often. The scripts are safe, so choose Keep (or "Keep anyway") and continue. They're plain text files: if you want to check first, open the file in Notepad and read exactly what it does.
Step 3: Double-click the script. A small green "H" appears in your system tray. The script is running.
Step 4: Start it with Windows.
Press Win+R, type shell:startup and press Enter. Put a shortcut to the script in the
folder that opens. From now on it's always there when you need it.
Step 5: Try it. Click in the Claude text box, press Ctrl+Alt+E, write a few lines and press Ctrl+Enter. That's it.
Editor installed somewhere else? Open the script in any text editor and change the path at the top. That's also where you can change the shortcut, or choose to always start with an empty document.
Visual Studio Code, but fast
VS Code is a fantastic editor. But with all its extensions, it isn't built to pop up for a quick prompt in a split second. So the VS Code script starts its own clean, minimal VS Code:
- No extensions. None are loaded, so nothing slows down startup. VS Code's built-in Markdown support still works.
- No distractions. No welcome page, tips, update checks, telemetry or AI chat panels.
- A clean window. No activity bar, status bar, minimap or breadcrumbs. Word wrap is on. Just you and your prompt.
- No interruptions. No workspace trust prompt, no "restore previous windows", no hot exit.
- Completely separate. It runs as its own instance with its own profile. Your normal VS Code windows, settings and extensions are never touched, and closing the prompt window never closes your real work.
The result is the editor you know, without the weight. The only thing it keeps is a small settings
folder in %LOCALAPPDATA%\prompt-editor\vscode, so the next start is even faster. You can delete it at
any time.
Which editor should you pick?
- Want the fastest start? Notepad or Notepad++. Both open in the blink of an eye.
- Write long, structured prompts in Markdown? VS Code. It takes a second longer to open, but you get proper Markdown editing.
- Not sure? Start with Notepad. You can switch scripts in ten seconds.
Deep dive: inside the VS Code scriptFor the curious: the VS Code script line by line, and how to change it.
The script is not a black box. The VS Code version is about 150 lines of AutoHotkey v2, and you can read every one of them. Let's walk through it from top to bottom, so you know exactly what runs on your PC and where to change it. The Notepad and Notepad++ scripts work the same way; only the part that starts the editor is different.
The first three lines
#Requires AutoHotkey v2.0
#SingleInstance Force
SetTitleMatchMode 2
#Requires AutoHotkey v2.0stops the script with a clear message if you accidentally run it with the old version 1.#SingleInstance Forcemakes sure only one copy runs. Double-click the script again and the new copy simply replaces the old one. Handy after you've changed something.SetTitleMatchMode 2lets the script find windows by a part of their title. That matters later: VS Code puts more than the file name in its window title.
The settings block
; ----- Settings ------------------------------------------------------
GRAB_EXISTING := true ; true = take the text already in the box along
; and replace it when pasting back
; false = always start with an empty document
TRIGGER := "^!e" ; Ctrl+Alt+E
CODE := EnvGet("LOCALAPPDATA") "\Programs\Microsoft VS Code\Code.exe"
if !FileExist(CODE)
CODE := "C:\Program Files\Microsoft VS Code\Code.exe"
; Clean, separate VS Code profile (settings + cache only, never your documents)
CODE_DIR := EnvGet("LOCALAPPDATA") "\prompt-editor\vscode"
; ---------------------------------------------------------------------
This is the part you're most likely to change. Everything between the two dashed lines is meant to be edited.
GRAB_EXISTING: withtrue, the script copies whatever is already in the text box into the editor, and replaces it when you paste back. Set it tofalseif you always want to start with an empty document.TRIGGER: the shortcut that opens the editor. AutoHotkey writes shortcuts with symbols:^is Ctrl,!is Alt,+is Shift and#is the Windows key. So"^!e"means Ctrl+Alt+E.CODE: where VS Code lives. The script first looks for the per-user installation in%LOCALAPPDATA%, then for the system-wide one inC:\Program Files. Installed somewhere else? Put your own path here.CODE_DIR: the folder for the script's own VS Code profile. It only holds settings and cache, never your prompts.
Example: a different shortcut. Ctrl+Alt+E already taken by another tool? Pick another combination:
TRIGGER := "^+p" ; Ctrl+Shift+P
TRIGGER := "#!p" ; Win+Alt+P
TRIGGER := "F9" ; just the F9 key
Use one line, not all three. Avoid shortcuts your other tools already use (Ctrl+Shift+P is the
command palette in many editors, so it's only an example). Save the file and double-click the script
again: thanks to #SingleInstance Force, the new shortcut works right away.
Registering the shortcut
global targetHwnd := 0, editorTitle := "", tmpFile := ""
EXE := "Code.exe"
Hotkey TRIGGER, OpenEditor
Three variables remember the state between two shortcuts: targetHwnd is the window you came from,
editorTitle the title of the prompt window and tmpFile the temporary file. EXE is the program
name the script looks for. The last line is where the magic starts: pressing TRIGGER calls the
function OpenEditor.
Opening the editor
OpenEditor(*) {
global targetHwnd, editorTitle, tmpFile
if editorTitle && WinExist(editorTitle " ahk_exe " EXE) { ; already open
WinActivate
return
}
if tmpFile && FileExist(tmpFile) ; leftover
try FileDelete tmpFile
targetHwnd := WinExist("A")
text := GRAB_EXISTING ? GrabText() : ""
editorTitle := "prompt_" A_Now ".md"
tmpFile := A_Temp "\" editorTitle
f := FileOpen(tmpFile, "w", "UTF-8-RAW"), f.Write(text), f.Close()
PrepareProfile()
; Own profile + no extensions = own fast process, separate from your VS Code
Run '"' CODE '" --new-window --disable-extensions --disable-workspace-trust'
. ' --user-data-dir "' CODE_DIR '\data" --extensions-dir "' CODE_DIR '\ext"'
. ' "' tmpFile '"'
if WinWait(editorTitle " ahk_exe " EXE, , 15) {
WinActivate
Send "^{End}"
}
}
Step by step:
- Already open? Then the script just brings that window to the front. Pressing the shortcut twice never gives you two editors.
- Leftover file? If a previous session ended unexpectedly, its temporary file is cleaned up first.
WinExist("A")remembers the active window: the text box you came from. That's where your prompt goes back to later.- If
GRAB_EXISTINGis on,GrabText()copies the existing text (more on that below). - The file gets a unique name with a timestamp, for example
prompt_20261122093000.md, in your Windows temp folder. The.mdextension is what gives you Markdown highlighting in VS Code. PrepareProfile()makes sure the clean VS Code profile exists.Runstarts VS Code with a few command-line options:--new-window(never reuse a window),--disable-extensions(no extensions),--disable-workspace-trust(no trust prompt), and its own--user-data-dirand--extensions-dir. Those last two are what make it a completely separate VS Code instance next to your normal one.WinWaitwaits up to 15 seconds for the window, brings it to the front, andCtrl+Endputs your cursor at the end of the text, ready to type.
Example: plain text instead of Markdown. Prefer no Markdown colouring? Change the extension:
editorTitle := "prompt_" A_Now ".txt"
Example: slow PC? If VS Code needs more than 15 seconds to start the first time, raise the 15
in the WinWait line.
A clean VS Code profile
PrepareProfile() {
settings := CODE_DIR "\data\User\settings.json"
if FileExist(settings)
return
DirCreate CODE_DIR "\data\User"
DirCreate CODE_DIR "\ext"
json := '
(
{
"workbench.startupEditor": "none",
"workbench.tips.enabled": false,
"workbench.enableExperiments": false,
"window.restoreWindows": "none",
"window.commandCenter": false,
"files.hotExit": "off",
"files.autoSave": "off",
"update.mode": "none",
"telemetry.telemetryLevel": "off",
"extensions.ignoreRecommendations": true,
"extensions.autoCheckUpdates": false,
"security.workspace.trust.enabled": false,
"chat.disableAIFeatures": true,
"editor.wordWrap": "on",
"editor.minimap.enabled": false,
"workbench.activityBar.location": "hidden",
"workbench.statusBar.visible": false,
"breadcrumbs.enabled": false
}
)'
f := FileOpen(settings, "w", "UTF-8-RAW"), f.Write(json), f.Close()
}
The first time, the script writes a settings.json for this separate profile. These are ordinary VS
Code settings: no start page, no tips, no restored windows, no hot exit, no updates, no telemetry, no
AI features, word wrap on and the minimap, activity bar, status bar and breadcrumbs hidden.
Note the if FileExist(settings) return: the file is only written once. That has a consequence
when you want to change something. You have two options:
- Edit the file directly:
%LOCALAPPDATA%\prompt-editor\vscode\data\User\settings.json. - Or change the settings in the script and delete the folder
%LOCALAPPDATA%\prompt-editor\vscode. The next time you press the shortcut, the script creates it again with your new settings.
Example: bigger letters and a different theme. Add these lines inside the { … } (mind the
commas between the lines):
"editor.fontSize": 16,
"workbench.colorTheme": "Default Light Modern",
Shortcuts that only work in the prompt window
#HotIf editorTitle && WinActive(editorTitle " ahk_exe " EXE)
^Enter:: Finish(true)
^!q:: Finish(false)
#HotIf
#HotIf makes the shortcuts between the two #HotIf lines conditional: they only work while the
prompt window is active. Everywhere else, Ctrl+Enter keeps doing what it normally does. Even in
your normal VS Code windows, because they have a different title.
^Enter(Ctrl+Enter) finishes and pastes your prompt back:Finish(true).^!q(Ctrl+Alt+Q) cancels:Finish(false)closes the editor without pasting anything.
Example: different keys to finish or cancel. Change the part before the :::
^+Enter:: Finish(true) ; Ctrl+Shift+Enter pastes back
Esc:: Finish(false) ; Escape cancels
Careful with Esc: VS Code uses it to close search boxes and suggestions, so you might cancel your
prompt by accident. Also don't use Ctrl+S: the script sends that itself to save the file.
Finishing up
Finish(paste) {
global editorTitle, tmpFile
Send "^s" ; saved -> no "save?" prompt
Sleep 300
WinClose editorTitle " ahk_exe " EXE
WinWaitClose editorTitle " ahk_exe " EXE, , 5
editorTitle := ""
text := FileExist(tmpFile) ? FileRead(tmpFile, "UTF-8") : ""
try FileDelete tmpFile
if paste
PasteBack(text)
}
This is why there's never a "do you want to save?" dialog: the script saves the file itself (^s),
waits 300 milliseconds, then closes the window and waits until it's really gone. It reads your text
from the file, deletes the file and, if you pressed Ctrl+Enter, pastes the text back.
Copy in, paste out, clipboard untouched
; ----- Shared helpers ------------------------------------------------
GrabText() {
saved := ClipboardAll()
A_Clipboard := ""
Send "^a^c"
text := ClipWait(0.4) ? A_Clipboard : ""
A_Clipboard := saved
return text
}
PasteBack(text) {
if !WinExist("ahk_id " targetHwnd)
return
WinActivate "ahk_id " targetHwnd
WinWaitActive "ahk_id " targetHwnd, , 2
Sleep 100
saved := ClipboardAll()
A_Clipboard := RTrim(text, "`r`n")
if ClipWait(1)
Send GRAB_EXISTING ? "^a^v" : "^v"
Sleep 300
A_Clipboard := saved ; restore your clipboard
}
Both helpers use the clipboard, and both put it back exactly as it was. ClipboardAll() saves
everything on it, images and formatting included.
GrabText()empties the clipboard, sends Ctrl+A and Ctrl+C in the text box and waits at most 0.4 seconds for text to arrive. Empty text box? Then you simply start with an empty document.PasteBack()first checks whether the original window still exists. If you closed it in the meantime, nothing is pasted anywhere else. Then it activates that window, puts your prompt on the clipboard without trailing empty lines (RTrim) and pastes it: with Ctrl+A first ifGRAB_EXISTINGis on, so the old text is replaced instead of doubled.
Example: a slow web app. If the paste sometimes lands too early, give the window a bit more time
by raising Sleep 100 to, say, Sleep 300.
Make it your own
The script is free to use and adapt. A few more common tweaks:
- Another VS Code build, like VS Code Insiders: change
CODEto its path andEXEto its program name (Code - Insiders.exe). - Always start empty:
GRAB_EXISTING := false. - Your favourite settings in the separate profile: see the
settings.jsonexample above.
After every change: save the script and double-click it again. That's all.
Why this matters
Prompts are becoming the new source code. The instructions you give an AI agent decide what it does, how well it does it and what it leaves alone. Writing them deserves a proper writing tool, not a cramped input field with a hair trigger.
At Konversaitional we write instructions for AI agents every day. This small tool made that noticeably calmer and faster. We hope it does the same for you.
Ready to meet your AI agents?
Writing good instructions is one part of the job. Turning them into AI agents that handle your customer contact and internal questions, across all your systems, is what we do. Book a demo and see it in 30 minutes.
