Clang Intellisense without UTF-8

Sysprogs forums Forums VisualGDB Clang Intellisense without UTF-8

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30967
    gruebs
    Participant

    Hi,

    Is there a way to use the Clang Intellisense on files with ANSI encoding (not UTF-8)?

    Background: We have Tools, which generate source files with ANSI encoding. While working with VisualGDB, we get Intellisense errors. Switching the encoding of a file to UTF-8 will result in tracked file changes in the Git repository. This is not practicable.

    Stefan

    #30972
    support
    Keymaster

    Hi,

    This is somewhat tricky due to the way encoding is handled on the VisualGDB side. We might be able to look into supporting it during the next major VisualGDB release, however it would take more than several months.

    As a workaround, we would advise creating a wrapper for the external tool that would run the original tool, and then change the encoding of the generated file to UTF-8. As it will be done automatically each time after the tool is invoked, it won’t result in any extra changes in git. From the source control point of view, it will look as if the tool was generating UTF-8 files in the first place.

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