• 请不要在回答技术问题时复制粘贴 AI 生成的内容
lcj2class
V2EX  ›  程序员

大家平时 coding 时都收藏了哪些提高效率的小工具

  •  1
     
  •   lcj2class · May 6, 2018 via Android · 8186 views
    This topic created in 3103 days ago, the information mentioned may be changed or developed.

    我先说个我的情况

    相信大家平时都会与时间戳打交道,debug 时经常需要把它格式化为人类可读的字符串,我之前一直是打来浏览器 console,然后 new Date(ts) 解决,偶尔也会找个在线工具来转,但这都需要离开之前的环境,不是很优雅。 直到今天我才意识到写一个 Emacs 函数就能搞定,哎,之前懒得不够彻底!

    Emacs 同学可参考: https://github.com/jiacai2050/dotfiles/blob/e649223ae94ba3365a45120fd867f5638ff20abd/.emacs.d/customizations/editing.el#L102-L116

    22 replies  •  2018-05-07 18:36:43 +08:00
    seaswalker
    seaswalker
    May 6, 2018 via iPhone❤️4
    1
    我是用 Linux 命令,date -d @时间戳
    crb912
    crb912
    May 6, 2018 via Android
    2
    文件搜索
    catfish(linux 平台),everything(win 平台)
    从此告别在文件夹下面一个找文件。
    jssyxzy
    jssyxzy
    May 6, 2018
    3
    linux , date
    xio
    xio
    May 6, 2018 via Android❤️1
    4
    peco
    lxml
    lxml
    May 6, 2018
    5
    因为 mac 上 bsd 和 linux 上 GNU 命令行风格不同,总记不住,我是写了个简单 bash 函数封装了下。
    # mac
    tim(){
    date -r ${1}
    }

    # linux
    tim(){
    date -d @${1}
    }

    用的时候 无脑 $ tim 1525588495
    willakira
    willakira
    May 6, 2018
    6
    autojump
    shiny
    shiny
    PRO
    May 6, 2018
    7
    一次函数调用的事情,这种场景我用 CodeRunner
    scnace
    scnace
    May 6, 2018 via Android
    8
    我用 Alfred Workflow(
    0xCNSumi
    0xCNSumi
    May 6, 2018
    9
    sublime 的正则查找和替换
    listray 比 everything 好用和好看不要太多
    totalcommander 浏览目录
    date -d @{时间戳}
    base64 --d
    最常用的还是 alt+tab 切换窗口
    GoLand
    GoLand
    May 6, 2018
    10
    autojump +1
    i730
    i730
    May 6, 2018
    11
    乍一看以为是 coding 的广告
    wanderpoet
    wanderpoet
    May 6, 2018 via iPhone
    12
    @gocnsumi #9 listray+1
    pompeii
    pompeii
    May 6, 2018 via iPhone
    13
    改键?什么左右、首尾、或者按单词移动光标,还有对应的删除,都改到主键区(不会用 vim )
    lcj2class
    lcj2class
    OP
    May 6, 2018 via Android
    14
    @pompeii 你在说什么?是说我 Emacs 里的配置嘛?那是因为终端下的 Emacs 有些快捷键无法直接输入,被终端捕获了。
    xxstop
    xxstop
    May 6, 2018
    15
    alfred
    opengps
    opengps
    May 6, 2018 via Android
    16
    我说一个快捷键吧,很实用但是很多人不知道的。
    同时编辑多列,alt+鼠标竖向选中,输入或者粘贴。
    这时候对于规则的多行编辑很管用,这一招经常用在拼写 SQL 的 in 语句时候,把复制出来的列前后加上',' 再用正则清空掉换行标记
    asaxing
    asaxing
    May 7, 2018❤️1
    17
    命令行中格式化 JSON 数据:curl xxx | python -m json.tool
    siteshen
    siteshen
    May 7, 2018❤️1
    18
    ;; 我通常用的这个 https://www.epochconverter.com/
    ;; 如果只需要查看,可以用更简单的函数
    (format-time-string "%FT%T%z" (number-at-point))

    ;; (describe-function 'format-time-string)
    ;; For example, to produce full ISO 8601 format, use "%FT%T%z".
    arzterk
    arzterk
    May 7, 2018
    19
    ripgrep
    remarrexxar
    remarrexxar
    May 7, 2018
    20
    windows 平台 wox
    sc13
    sc13
    May 7, 2018
    21
    经常用 snipaste 截屏软件,钉在桌面上用来看数据库字段或者一些刚才要记住的东西.
    alexwu
    alexwu
    May 7, 2018
    22
    intellij 的 Custom Postfix Templates 插件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2911 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 67ms · UTC 14:02 · PVG 22:02 · LAX 06:02 · JFK 09:02
    ♥ Do have faith in what you're doing.