search

Home  >  Q&A  >  body text

请教各位:ubuntu下sublime代码对不齐

ubuntu下安装的sublime3,在windows下代码是齐的,copyubuntu下代码就对不齐了,就算重新写一份只使用tab也还是对不齐。。。请教各位有啥解决办法

如图二:其实function距离左边是4个字符,$离左边是4个字符,dataType离左边也是,就是参考线对不起

迷茫迷茫2806 days ago478

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-22 08:57:45

    If you mean that the tab does not seem to be 4 characters wide, then it must be the font. Choose a fixed-width font.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-22 08:57:45

    Install a formatting plug-in

    I like sublime plugins a lot~

    reply
    0
  • PHP中文网

    PHP中文网2017-04-22 08:57:45

    I don’t understand what misalignment means = =Is it because of equal-width characters?
    Or is it because of 4个空格变成3个or2?

    reply
    0
  • PHPz

    PHPz2017-04-22 08:57:45

    This must not be a monospaced font. . Change the configuration file, just replace it with Monospace.

    Also, there are some articles on the Internet that recommend excellent monospaced fonts. If you are interested, you can also take a look~

    reply
    0
  • Cancelreply