facebook

Formatting works not correct.

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #611697 Reply

    Vitali
    Participant

    Hi.
    I have many .TS files and formatting settings editor.tabSize=2.0
    But in some files it works correctly and formats them for tab size = 2 but in other files it formats for tab size = 4

    #611699 Reply

    Brian Fernandes
    Moderator

    Vitali,

    1) What are you using to format – do you have either the Beautify or Prettier extension installed? You can check at Help > CodeMix Extensions, see if they are installed and enabled.

    2) Can you go to Preferences>CodeMix>Settings>Workspace Settings and look for the editor.detectIndentation setting? If it is set to true, please set it to false. Please reopen the files before formatting again – does this fix the problem?

    #611700 Reply

    Vitali
    Participant

    Hi Brian.
    1) No any extensions installed for formatting, I just use Ctrl-Shift-F
    2) Setting editor.detectIndentation=false helped
    Thank you.

    #611701 Reply

    Brian Fernandes
    Moderator

    Vitali,

    Glad that setting fixed it – it is actually supposed to be false by default. Can you tell us roughly when you installed CodeMix and / or when you created your current workspace?

    Thanks!

    #611702 Reply

    Vitali
    Participant

    Brian,
    I have installed CodeMix here about 3 weeks ago then copied the workspace from my old workstation. so I have not created it on the current one.
    May be that caused settings changes.

    • This reply was modified 5 years, 7 months ago by Vitali.
    #611744 Reply

    Brian Fernandes
    Moderator

    Vitali,

    Thank you for those details, we’ll take another look internally at the code responsible for setting this value.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Formatting works not correct.

You must be logged in to post in the forum log in