question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

php option indent_with_space is not working

See original GitHub issue

So, our company prefers tabs for indenting and spaces for alignment. Im not here to start a holy war. I simply need to be able to have this plugin stop changing all my tab indents into spaces.

I go into my settings and make the following changes:

"codeformatter_php_options":
    {
       "php55_compat": true, // PHP 5.5 compatible mode
       "indent_with_space": false, // Use spaces instead of tabs for indentation
    },

However, every time i format my code using your plugin it STILL overrides my tabs. Any ideas?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
REJackcommented, Jun 3, 2016

try to set psr2 to false.

i have not this problem with my config

        "format_on_save": true, // Format on save
        "psr1": false, // Activate PSR1 style
        "psr1_naming": false, // Activate PSR1 style - Section 3 and 4.3 - Class and method names case
        "psr2": false, // Activate PSR2 style
        "indent_with_space": false, // Use spaces instead of tabs for indentation
        "enable_auto_align": false, // Enable auto align of = and =>
        "visibility_order": false, // Fixes visibility order for method in classes - PSR-2 4.2
        "smart_linebreak_after_curly": true, // Convert multistatement blocks into multiline blocks
0reactions
akalongmancommented, Apr 16, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Select box fails to fetch option value with white spaces after ...
My problem is when I echo the selected option value the words after the white spaces are not shown i.e it shows only...
Read more >
IndentLine not working · Issue #269
I installed via vim-plug, no dice. My vimrc: " Specify a directory for plugins " - For Neovim: /.local/share/nvim/plugged " - Avoid using ......
Read more >
Prechecker results: error
PHP coding style problems. (9792 errors, 221 warnings). This section shows the coding style problems detected in the code by phpcs [More info]....
Read more >
sabberworm/php-css-parser
Parser for CSS Files written in PHP. ... Open Issues: 79 ... The charset option will only be used if the CSS file...
Read more >
Moodle 3.9 XRef and Diffs
Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months). PHP version: minimum PHP 7.2.0 Note: minimum PHP version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found