Visual Studio .editorconfig not working

Sysprogs forums Forums VisualGDB Visual Studio .editorconfig not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31493
    PeterU
    Participant

    Hi,

    Visual Studio provides a method for including the code formatting information with a project by using a ..editorconfig file(behavior similar to  .clang-format); this works on MS native C\C++ projects.

    On visualGDB projects if a .editorconfig file is included the text formatting instructions(eg. trim_trailing_whitespace = true) work but the C++ formatting instructions(eg. cpp_indent_braces = false), do not work, and are overridden by project formatting behavior.
    Is there  a project setting so visualGDB projects can be set to use a .editorconfig file if it is available.

    Thanks

    • This topic was modified 3 years, 2 months ago by PeterU.
    • This topic was modified 3 years, 2 months ago by PeterU.
    #31497
    support
    Keymaster

    Hi,

    Indeed, the Clang-based IntelliSense engine used by VisualGDB does not rely on the .editorconfig files. It instead uses either the registry settings (when using the legacy formatter) or the .clang-format files when using clang-format.

    Please refer to the following page for detailed documentation: https://visualgdb.com/documentation/intellisense/#formatting

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.