Click Generate new token, and select Generate new token (classic).
Give your token a descriptive Note (e.g., vscode-issues-sidebar).
Select an Expiration for your token.
Under Select scopes, check the repo scope. This is required to access your private repositories.
Click Generate token and copy the token. You won't be able to see it again!
Note for Organization Repositories:
If you need to access issues in a private repository that belongs to an organization using SAML SSO, you may need to authorize the PAT for that organization after creating it. Find your token in the list and click the Configure SSO button.
2. Set the Token in VSCode
Open the Command Palette (Cmd+Shift+P or Ctrl+Shift+P).
Run the GitHub Issues: Set GitHub Personal Access Token command.
Paste your copied token and press Enter.
🚀 How to Use
✏️ Select Repository: Click the pencil icon to choose a repository. A list of all your accessible repositories will be shown.
🔄 Refresh: Click the refresh icon to reload the issue list.
🔑 Set Token: Click the key icon to update your Personal Access Token.
🧪 Run Diagnostics: Click the beaker icon to run diagnostics if you encounter any problems.
Managing an Issue
Right-click on an issue in the sidebar to open the context menu:
Add Comment: Opens an input box to add a comment to the issue.