WilliamColton
V2EX  ›  问与答

Windows PowerShell 下 Claude Code 不能正常粘贴

  •  
  •   WilliamColton · Apr 17 · 1588 views
    This topic created in 210 days ago, the information mentioned may be changed or developed.

    比如这几行粘贴之后只会显示最后几行,不知道是为什么

    然后 wsl 下粘贴则一切正常

    难道是终端的问题吗?请问大家 Windows 环境下一般使用哪个终端去运行 Claude Code 的呢?

    {
        "code": 200,
        "data": [
            {
                "clubId": 1,
                "content": "xxx",
                "endTime": "2026-04-19 00:00:00",
                "id": 1251786757,
                "name": "领养日",
                "position": "xxx",
                "startTime": "2026-04-18 00:00:00"
            },
            {
                "clubId": 1,
                "content": "线下摆点,欢迎来看看我校的猫猫周边,所得收益全部用于校内猫狗 TNR 绝育计划。",
                "endTime": "2026-04-19 00:00:00",
                "id": 1251786758,
                "name": "线下摆点",
                "position": "xx",
                "startTime": "2026-04-17 00:00:00"
            },
            {
                "clubId": 1,
                "content": "我是一个示例,我是一个示例",
                "endTime": "2026-04-26 00:00:00",
                "id": 1251786760,
                "name": "我是一个示例",
                "position": "我是一个示例",
                "startTime": "2026-04-24 00:00:00"
            }
        ],
        "message": "操作成功"
    }
    
    7 replies  •  2026-04-18 22:41:28 +08:00
    urfree
    urfree
    Apr 17
    1
    试了一下 powershell7 没问题
    redbule
    redbule
    Apr 17
    2
    别用自带的终端,安装并使用 powershell7
    afkool
    afkool
    Apr 17
    3
    我遇到的问题是粘贴后自动换行之类的。我现在手打需求到 txt ,然后把 txt 给它。
    flyme2them00n
    4
    感觉是换行符的问题,如果是 json 的话可以压缩一下试试
    ysycoin
    ysycoin
    Apr 17
    5
    同 powershell ,没有问题
    mcdull619
    mcdull619
    Apr 17
    6
    pwsh
    soulflysimple123
    powershell 7.6 没问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2149 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:38 · PVG 20:38 · LAX 04:38 · JFK 07:38
    ♥ Do have faith in what you're doing.