adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Changing tabSize in project's settings doesn't affect new code #7881

Open 0b10011 opened 10 years ago

0b10011 commented 10 years ago

Steps to reproduce

  1. Open a project with tabSize set in .brackets.json
  2. Change tabSize to a different value
  3. Click after opening {
  4. Press Enter/Return

    Expected results

Cursor should be indented by one tabSize (new value).

Actual results

Cursor is indented by the old tabSize.


This is especially noticeable when useTabChar is set to true. In this case, all tabs already present are displayed using the new tabSize setting, but the cursor after step 4 will be preceded by at least 1 space (plus at least 1 tab character, if the new tabSize is larger than the previous), instead of a single tab character.


Brackets 0.39.0-12914 (linux)

dangoor commented 10 years ago

Medium priority to me to look into.