kaworu

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Indent case labes in VisualGDB #30225
    kaworu
    Participant

    Oh, and my indentation settings from VS.

    Edit: attached wrong screenshot, newer one is correct.

    • This reply was modified 3 years, 1 month ago by kaworu. Reason: Wrong screensot
    Attachments:
    You must be logged in to view attached files.
    in reply to: Indent case labes in VisualGDB #30223
    kaworu
    Participant

    Funny something new happened, I went to the options, Tools -> Options, Text Editor -> C/C++ (VisualGDB) -> Formatting Engine, changed “Default Formatting Engine” to “SysProgsFormat”, restarted VS, and now Ctrl+K,D works differently, but still not correctly – see attachment.

    So for now my conclusion is, as follows:

    • If Text Editor -> C/C++ -> Formatting -> Indentation, option “indent case labels” is selected
    • And in Text Editor -> C/C++ (VisualGDB) -> Formatting Engine, “Default Formatting Engine” is set to “SysProgsFormat”, then indentation is made before case label – this is expected – and after case label – this is wrong;
    • If in Text Editor -> C/C++ (VisualGDB) -> Formatting Engine, “Default Formatting Engine” is set to “Clang format”, then indentation is not made neither before nor after case label;

    Also changing this options requires reloading the project, i would expect this change to be taken into account right away or at lest would be nice to have info somewhere, “changing this option requires restart”, or something.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Indent case labes in VisualGDB #30219
    kaworu
    Participant

    Except – It doesn’t work. Switched to “Regular Intellisense” (first screenshot), restarted VS, reloaded project, Ctrl+K,D and it still doesn’t follow VS’s formatting settings (see screenshots). Confirmed that on Clang Intellisense Diagnostic Console “Native VC++” is selected.

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)