Version: 1.0.0 Author: Rodrigo Suárez
Cookie Formatter is a simple VSCode extension that allows you to easily format cookies into a more readable format or compress them into a single line for easy copying and pasting. This extension provides two commands: Cookies: Compress and Cookies: Decompress, which make working with cookies in your code more efficient and organized.
- Cookies: Compress - Converts multiple lines of cookies into a single line.
- Cookies: Decompress - Converts a single line of cookies into a more readable format by separating each cookie into its own line.
- Open VSCode.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X. - Search for
Cookie Formatter. - Click Install to install the extension.
- Once installed, you can access the commands via
Cmd+Shift+Pon macOS orCtrl+Shift+Pon Windows/Linux.
This command will take a single line of cookies and format them into a more readable, multi-line format.
Example:
Input:
cookie_name=cookie_value; cookie_name2=cookie_value2; cookie_name3=cookie_value3;
Output:
cookie_name=cookie_value;
cookie_name2=cookie_value2;
cookie_name3=cookie_value3;
To use this command:
- Select the text containing the cookies.
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux). - Type
Cookies: Decompressand press Enter.
This command will take multiple lines of cookies and compress them into a single line, making it easier to copy and paste.
Example:
Input:
cookie_name=cookie_value;
cookie_name2=cookie_value2;
cookie_name3=cookie_value3;
Output:
cookie_name=cookie_value; cookie_name2=cookie_value2; cookie_name3=cookie_value3;
To use this command:
- Select the text containing the cookies.
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux). - Type
Cookies: Compressand press Enter.
Cookies: Compress- Compresses cookies into a single line.Cookies: Decompress- Decompresses cookies into a multi-line format.
If you find any issues or have suggestions for new features, please feel free to open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.