Code Submit Extension 🚀 Code Submit is a Visual Studio Code extension that allows users to submit their code to a local or remote server directly from the editor. It provides an easy-to-use status bar button and a command to send the currently open file's content to a configured API endpoint. 🛠 Features 🌐 Submit Code: Sends the content of the currently active file to a server. 🔘 Status Bar Button: Click the Submit Code button in the VS Code status bar for quick access. ⚙️ Configurable API Endpoint: Users can change the API address in VS Code settings. 🎡 Supports Any Server: Works with any API that accepts file submissions. 📌 How to Install Note: Make sure you install node fetch (npm install node-fetch) Method 1:
Method 2:
🚀 How to Use Option 1:
Option 2:
⚙️ Configuring the API Endpoint By default, the extension sends requests to: http://localhost:3000/api/submit If your server has a different address, you can update it in VS Code settings:
🖥️ API Requirements Your server should accept a POST request at the configured API address with the following JSON payload: {
} It should return a JSON response: {
} 🔧 Troubleshooting
🐝 License This extension is open-source and free to use. |