When I am coding with my favorite code editor — Visual Studio Code. I always find my self switching between, VSCode and a Twitter browser tab tweeting, can’t I tweet directly from VSCode? I said to myself. Damn it, can’t something be done? Looked for existing extensions, none seemed suitable. This leads me to the development of the extension.
VS Code Tweet — Is a twitter client one click away at your VS CODE activity bar.
How To Set Up
Open VS Code and hit CTRL + SHIFT + X to open the extensions and search for vscode tweet. Then install and reload.
You can also download the extension here Download VSCode Tweet
After a successful install, you need to head on to https://developer.twitter.com/ If you don’t have a Twitter developer account, you have to create one. If you have, just sign in and proceed to create a new Twitter App.
Fill in the required fields.
NOTE: Disable “Enable Sign In with Twitter”
Check to verify if the App Permissions are set to read and write.
Goto Keys and Tokens tab under the Access token & access token secret, click the create button to generate new access tokens.
Copy and note down the following:
- Consumer API Keys
- Consumer API Screct
- Access Token
- Access Token Screct
Open up VS CODE, at first install, VS CODE Tweet should automatically prompt you to set up Twitter API credential, Click on Set Up Credentials button on the modal. Ethier ways, you can navigate to set up the credentials like this.
After setting up the credentials. You have to reload VSCODE for the API keys configuration to be fully applied! To easily do this is just to click the Reload VSCODE Tweet Button under the SETTINGS view of VS CODE TWEET activity view (sidebar).
If you have bound a key combination to reload VS CODE, you can also use the key combo to reload VS CODE.
Open the command palette “ (Ctrl + Shift + P)” and execute the command:
And We Are Done :-)
Yes, we are done! Just click the twitter icon at the sidebar and enjoy. Don’t forget to share, rate the extension and contribute to making it better :)