<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[Enable shift+enter in Claude Code]]></title>
    <link>https://linlog.skepticats.com/entries/2026/05/enable-shift-enter-in-claude-code.php</link>
    <description><![CDATA[<p>This is yet another "thing I <em>will</em> forget, so I'm writing a note here" post.</p>
<p>I've been used to using Claude Code inside the IntelliJ plugin.&nbsp; That plugin is very basic and still in beta, but it works well enough.&nbsp; All it really does is run Claude Code in the integrated terminal, provide the current file as context, and show changes in the integrated diff viewer.&nbsp; But it also pre-configures the setting to allow you to press shift+enter in the Claud Code to enter a newline.</p>
<p>If you fire up Claude Code in a Windows Terminal session, this does not work.&nbsp; To enter a newline, you have to type a backslash followed by enter, which sort of makes sense, but is annoying and unintuitive.&nbsp; There is a /terminal-setup command, but that also doesn't work in Windows Terminal.&nbsp; Apparently Anthropic hasn't gotten around to implementing that yet.</p>
<p>Fortunately, there is a work-around.&nbsp; You can manually add the key bindings to your Windows Terminal configuration.&nbsp;&nbsp;</p>
<p><code>"actions": [<br>&nbsp; {<br>&nbsp; &nbsp; "command": {<br>&nbsp; &nbsp; &nbsp; "action": "sendInput",<br>&nbsp; &nbsp; &nbsp; "input": "\u000A"<br>&nbsp; &nbsp; },<br>&nbsp; &nbsp; "id": "User.sendLF"<br>&nbsp; }<br>],<br>"keybindings": [<br>&nbsp; {<br>&nbsp; &nbsp; "id": "User.sendLF",<br>&nbsp; &nbsp; "keys": "shift+enter"<br>&nbsp; }<br>]</code></p>
<p>That's what Claude spit out from a scape of Github, anyway.&nbsp; I originally got it from a Redit post that said essentially the same thing, but now I can't find it.&nbsp; Either way, it seems to work just fine.</p>]]></description>
    <lastBuildDate>2026-05-23T13:42:06+00:00</lastBuildDate>
    <managingEditor>pageer@skepticats.com (Peter Geer)</managingEditor>
    <language>en-US</language>
    <generator>https://lnblog.skepticats.com/?v=2.3.3</generator>
  </channel>
</rss>
