• sublime 把 tab 转成 4 个空格


    Preferences -> Settings-User

    {
        "tab_size":4,
        "translate_tabs_to_spaces": true,

        "draw_white_space": "all", // 显示出空白符

        "trim_trailing_white_space_on_save": true // 保存时自动去除行尾空白符

    }

    再敲 tab 的时候就自动换成空格了

    如果想把已经写入当前文件的 tab 都转成空格

    Ctrl +` 呼出 Console

    >>> view.run_command('expand_tabs')

    PS: vim 中的设置

    set nu

    set shiftwidth=4

    set tabstop=4

    set softtabstop=4

    set expandtab

    set autoindent

    参考链接:

    Sublime关于tab转空格的设置技巧

    vim tab变空格

    http://sublime-text-unofficial-documentation.readthedocs.org

    https://www.sublimetext.com/docs/api-reference

    http://docs.sublimetext.info/en/sublime-text-2/

    +V d2h5X251bGw= 请备注:from博客园
  • 相关阅读:
    【NOI2015】荷马史诗
    Codeforces Round #415 (Div. 2)
    Codeforces Round #408 (Div. 2)
    bzoj3230
    poj1743
    poj1226
    bzoj1295
    bzoj1294
    bzoj1296
    bzoj1239
  • 原文地址:https://www.cnblogs.com/hangj/p/4974558.html
Copyright © 2020-2023  润新知