[英]How do I change indent in php-mode to 2 spaces in Emacs?
I try to change indent from 4 spaces to 2 spaces (I need to write code with this style). 我尝试将缩进从4个空格更改为2个空格(我需要使用这种样式编写代码)。
I try to evaluate this in the buffer with php code: 我尝试使用php代码在缓冲区中对此进行评估:
(setq tab-width 2)
or 要么
(setq-default tab-width 2)
but it didn't work, when I type TAB I got 4 spaces. 但它不起作用,当我键入TAB时,我得到了4个空格。
确定找到它:
(setq c-basic-offset 2)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.