Programmatically remove github account from account settings in Visual Studio 2022 within an VS extension

iu_110978 0 Reputation points
2023-02-21T16:06:34.45+00:00

In Visual Studio 2022, I can add a GitHub account, via File --> Account Settings

User's image

I have a Visual Studio extension where I would like to be able to check if any GitHub account was defined and if so remove that account. Basically to do the same action that is done when user clicks the 'remove` next to the account name.

Any help is appreciated

Thanks

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.