Main site

Utilizing the JsRates VS Code Extension

Enhance your coding workflow with the JsRates VS Code extension. This tool integrates directly into Visual Studio Code, allowing you to edit and manage your shipping rate codes with advanced features.

The JsRates VS Code extension is available to subscribers of the full plan.

Installation Guide

Follow these steps to install the JsRates VS Code extension:

  1. Visit the Settings page in JsRates.
  2. Click the Download extension button to obtain the VSIX file.
  3. Open Visual Studio Code.
  4. Access the Extensions view (Ctrl+Shift+X or Cmd+Option+X on macOS).
  5. Click the ellipsis (...) in the Extensions view and select Install from VSIX....
  6. Locate and select the downloaded VSIX file.
  7. Complete the installation and reload Visual Studio Code to activate the extension.
  8. For terminal installation, use: code --install-extension jsrates-extension.vsix.

To confirm the installation:

  1. Open the Extensions view in Visual Studio Code.
  2. Search for the JsRates extension.
  3. Ensure the extension appears in the results and is enabled.

Activation and Usage

Once installed, activate and use the extension with these steps:

  1. In JsRates, go to Settings, enable Activate JsRates VS Code extension, and save.
  2. Click Open in VS Code to initiate the code transfer to Visual Studio Code.
  3. Respond to the prompts and wait for the code to load.
  4. Edit as needed in Visual Studio Code.
  5. To save a file back to your JsRates backend, use one of the following:
    • Click the Save to JsRates button in the editor title bar
    • Click Save to JsRates in the status bar (bottom-right)
    • Use the keyboard shortcut Ctrl+J Ctrl+S (Cmd+J Cmd+S on macOS)
  6. After saving, a confirmation message will indicate that the file has been successfully saved.
  7. In the JsRates app editor page, click Reload to view the updated code.
  8. You can also create and save new files in Visual Studio Code. To initialize the extension, first open your JsRates files via Open in VS Code, then use Save to JsRates (or the keyboard shortcut) to save the new file.

Note: To protect your code, you can disable the VS Code extension at any time from the JsRates Settings page when it’s not in use.

Security Considerations

For optimal security, adhere to these practices:

  • Activate the VS Code extension only when necessary. When active, the session lasts for 12 hours.
  • Each time you click the Open in VS Code button, a new session starts, rendering any previous sessions invalid.
  • It's recommended to deactivate the extension in the JsRates settings after use to prevent unauthorized access.

Using JsRates VS Code extension

The following video demonstrates how to install and use the JsRates VS Code extension.