pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

Tabs vs spaces not always respected #95

Open jacobweber opened 8 years ago

jacobweber commented 8 years ago

Using Twig 2.0.0 with Eclipse 4.6.0 on Mac OS 10.11.6.

  1. In the settings for PHP, select tabs instead of spaces for indentation.
  2. Create a new Twig file.
  3. Press tab. A tab character is inserted, as expected.
  4. Type a Twig tag after the tab character, e.g. {{ foo }}
  5. Move the cursor to between the tab character and the Twig tag.
  6. Press tab again. This time four spaces are inserted.
waveywhite commented 3 years ago

The same problem occurs when indenting a block of code: the editor will always use spaces.