Code Tools is a collection of developer utilities for VS Code. It currently includes:
Dos2Unix
Toolbox
JWT Decode
JSON Format
Base64
Timestamp Convert
curl -> fetch
API Debugger
SQL Format
Regex Test
Features
Adds a unified Toolbox panel so you can enter input, run conversions, and copy results directly inside VS Code.
Each tool also provides its own command entry point, and selected text can be preloaded into the input field automatically.
Supports copying results to the clipboard, opening results in a new editor tab, or writing results back into the current selection.
Supports CRLF -> LF conversion for a single file.
Supports recursively processing all files inside a folder selected in the Explorer.
If no target is selected in the Explorer, the extension automatically processes the active file in the current editor.
Open files are updated and saved through the editor API, while unopened files are written back to disk directly.
Likely binary files are skipped automatically to reduce the risk of modifying images, executables, and other non-text files by mistake.
Shows progress while processing folders in bulk and provides a summary after the conversion is complete.
Usage
1. Open Toolbox
Run the following command from the Command Palette:
Panda Code Tools: Open Toolbox
2. Toolbox Utilities
JWT Decode: Decodes the JWT header and payload locally, and expands time-based claims such as iat, exp, and nbf.
JSON Format: Formats or minifies JSON.
Base64: Encodes and decodes both standard Base64 and URL-safe Base64.
Timestamp Convert: Converts between timestamps in seconds, milliseconds, microseconds, or nanoseconds and common datetime strings.
curl -> fetch: Converts common curl commands into JavaScript fetch snippets.
API Debugger: Sends HTTP requests in a Postman-style panel, supports importing curl commands, and lets you inspect the response body, headers, cookies, and timing.
SQL Format: Formats common SQL dialects and supports keyword casing options.
Regex Test: Supports JavaScript regular expression testing, capture group inspection, and replacement previews.
3. Dos2Unix
Process a Single File
Right-click the target file in the VS Code Explorer.
Run Dos2Unix.
You can also open a file directly and run Dos2Unix from the Command Palette.
Process an Entire Folder
Right-click the target folder in the VS Code Explorer.
Run Dos2Unix.
The extension recursively processes all files in that directory and converts their line endings to LF.
Behavior
Files that already use Unix line endings are not modified again.
Symbolic-link directories are skipped during directory processing to avoid recursing into uncontrolled paths.
If the target contains likely binary files, those files are skipped and counted in the result summary.
Requirements
No additional configuration is required. The extension works immediately after installation.
Extension Settings
The current version does not add any custom configuration settings.
Known Issues
Binary file detection currently uses lightweight heuristics and is mainly intended to avoid obvious accidental modifications.
curl -> fetch currently focuses on common command patterns. A few complex shell syntaxes may fall back to warning comments instead.