Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Search for: X Writer: Setup Credentials.
Choose an option:
Import from file (Recommended): Select a .env or .txt file with your keys (API_KEY=...).
Enter manually: Copy and paste your 4 keys one by one.
Note: Make sure to regenerate your Access Tokens after changing the App Permissions to "Read and Write" in the developer portal.
Donations
If you like the extension, you can support me by buying me a coffee ☕:
X Writer: Donate / Support or visit my Ko-fi.
Usage
Post a Tweet
Method 1: From Activity Bar
Click on the X Writer icon in the left sidebar 🐦.
Click on "✍️ Post Tweet".
Write your message (real-time counter: X/280).
Done! You will see a "View on X" button to open it in the browser.
Method 2: With Smart Context
Select code or text in the editor.
Ctrl+Shift+P → X Writer: Post Tweet.
The selected text will pre-fill automatically.
Edit and publish.
Method 3: From Commands
Open the Command Palette (Ctrl+Shift+P).
Search for: X Writer: Post Tweet.
Write your message.
Done!
Tweet Limit
⚠️ Respecting the X Free API limits:
17 tweets per day (automatic counter).
The limit resets every 24 hours.
You will see remaining tweets on every post.
Delete Credentials
Open the Command Palette.
Search for: X Writer: Reset Credentials.
Security
Credentials are stored securely using VS Code's SecretStorage API, which utilizes the operating system's credential system (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux).
Help & About
Click on the "❓ Help & About" icon in the sidebar to see commands and developer info.