V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
siwadiya
V2EX  ›  Windows

windows 快捷键怎么删除当前行的光标前的所有字符

  •  
  •   siwadiya · Aug 30, 2022 · 3223 views
    This topic created in 1343 days ago, the information mentioned may be changed or developed.

    类似 mac 的 command del 这种,有快捷键吗

    15 replies    2024-04-22 15:43:46 +08:00
    Kasumi20
        1
    Kasumi20  
       Aug 30, 2022   ❤️ 1
    shift + home + del

    软件安装了 vim 插件的话,ctrl + u
    siwadiya
        2
    siwadiya  
    OP
       Aug 30, 2022
    @Kasumi20 这种是只能在指定软件内?
    moen
        3
    moen  
       Aug 30, 2022
    你说的是 Ctrl+BackSpace 吧
    moen
        4
    moen  
       Aug 30, 2022
    印象中 Windows 通用的那套顶多也就 macOS 的 Options 修饰键的,最多是以词为单位
    AllenHua
        5
    AllenHua  
       Aug 30, 2022
    mac 快捷键是 command + backspace 。

    win 下类似的功能就是 control + backspace ,但是 win 以词为单位,不能做到和 mac 那样直接删除整行,想要删除整行只能 (shift + home) chord to delete
    superkkk
        6
    superkkk  
       Aug 30, 2022 via Android
    ctrl shift home
    maocat
        7
    maocat  
       Aug 30, 2022
    不是 CTRL + X 得不到我的认可
    renmu
        8
    renmu  
       Aug 30, 2022 via Android
    ahk 做个映射吧
    cnbatch
        9
    cnbatch  
       Aug 31, 2022
    @siwadiya
    @AllenHua

    可以做到,CTRL + Shift + backspace
    Sisyphe42
        10
    Sisyphe42  
       Aug 31, 2022
    ctrl+backspace 只是删词。作为 win 内建功能,它是以空格划分单位,对于中文浏览器会有分词处理。删整行就只能 shift+home 选中然后删( ctrl 就 all )
    AllenHua
        11
    AllenHua  
       Aug 31, 2022
    @cnbatch # 试了下真可以,谢谢。
    siwadiya
        12
    siwadiya  
    OP
       Sep 1, 2022
    @cnbatch 我试了不行,win10 1809
    cnbatch
        13
    cnbatch  
       Sep 1, 2022
    Windows 10 1809 应该是比较旧了,较新的版本( 20H2 、21H2 )都可以这样做
    orangutan92
        14
    orangutan92  
       Apr 22, 2024
    @cnbatch #9 这个好
    orangutan92
        15
    orangutan92  
       Apr 22, 2024
    @cnbatch #9 但是刚刚在终端试了下,不行呢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 87ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.