DEV Community

K
K

Posted on

On AI Serivces, press Enter for a new line, Shift/Ctrl/Cmd + Enter to send the prompts!

Problem

How do you usually write prompts when using Claude, ChatGPT or other AI services?

I tend to write longer texts or complex questions in Notion first and then paste them, but for short questions or small edits, I just type directly into the prompt box.

BUT—adding a line break in the prompt box requires Shift+Enter, and:

  1. The Shift key often gets ignored — am I the only one?
  2. Or I accidentally hit Enter while trying to add a line break

Every time that happens, I have to stop the AI, scroll back up, and fix my question. It’s fine once or twice — but when you’re busy, it’s a real test of patience 😇

So I made a simple solution for this!

You can save it as a bookmark or run it automatically using Tampermonkey.

Solution: FlipEnter

GitHub Gist | FlipEnter

Features

  • Enter → create a new line
  • Shift/Ctrl/Cmd + Enter → send the prompt

Supported Websites

  • Claude
  • ChatGPT
  • Gemini
  • Perplexity
  • Grok
  • v0

How to use?

Bookmark

Save it as a bookmark, click to enable FlipEnter. Keep it in your toolbar for easy access.

⚠️ DO NOT include the ==UserScript== section!

  • Name : FlipEnter
  • URL : javascript:PASTE_CODE_HERE
    • e.g., javascript:(() => { 'use strict'; ... })();

Tampermonkey

Run FlipEnter automatically using Tampermonkey

  1. Install Tampermonkey
  2. Copy & paste the full script and save

Note: Chromium-based browsers require permission. Check the official FAQ

If you found this helpful, please ⭐️ it on GitHub and share it with others!

Top comments (0)