sublime 將tab替換為4個空格 & 顯示空格


preferences -> settings -> 在右側的json中加入(左側的默認配置是無法修改的,可以在默認配置中搜到這幾個配置)

 

  // The number of spaces a tab is considered equal to(一個tab相當於多少個空格)
    "tab_size": 4,

    // Set to true to insert spaces when tab is pressed(設置為true表示按下tab鍵時插入空格符)
    "translate_tabs_to_spaces": true,

    // Set to "none" to turn off drawing white space, "selection" to draw only the
    // white space within the selection, and "all" to draw all white space(設置成"none"將關閉空格繪制,設置成"selection"只在選中的時候繪制空格,設置成"all"任何時候都繪制空格) 
  "draw_white_space": "all",

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM