Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>S2P PreviewNew to Visual Studio Code? Get it now.
S2P Preview

S2P Preview

applicate2628

|
1 install
| (0) | Free
MVP Touchstone 1.0 S2P preview for RF simulation files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

S2P Preview

Preview Touchstone 1.0 .s2p files for RF simulation work directly in VS Code.

Features

  • Supports 2-port Touchstone 1.0 .s2p files with # GHZ S <MA|DB|RI> R 50.
  • Plots S11, S21, and S22 in dB.
  • Opens .s2p files as the default S2P Preview custom editor.
  • Opens in Auto / Full file range mode and highlights an editable passband.
  • Keeps 1-10 GHz as the first configurable preset.
  • Adds and deletes passband presets from the preview.
  • Shows guide lines at -3 dB, -15 dB, and -20 dB.
  • Shows quick passband metrics for S21 and S11/S22.

Unsupported for the current release: Touchstone 2.0/2.1 keyword blocks, Smith chart, multi-file overlays, and PNG export.

Use

Open a .s2p file. VS Code should use the S2P Preview custom editor by default.

To open the preview from an already-open text editor, run:

S2P: Preview Current File

You can also right-click a .s2p file in Explorer and run the same command. Use the Start GHz and Stop GHz fields in the preview to update the shaded band and metrics interactively. Use the preset dropdown to activate a preset, save the current range as a new preset, or delete a preset with the x at the end of its row. To return to the active preset after manual edits, open the dropdown and select that preset again.

To inspect raw Touchstone text, use Reopen Editor With... and choose Text Editor.

Settings

{
  "s2pPreview.passbandPresets": [
    { "label": "1-10 GHz", "startGHz": 1, "stopGHz": 10 }
  ],
  "s2pPreview.defaultPassbandPreset": "Auto / Full file range"
}

Preset add/delete actions update user settings by default. If the workspace already defines s2pPreview.passbandPresets or s2pPreview.defaultPassbandPreset, those actions update the workspace settings instead.

License

Commercial licensing is available separately. Unless you have a separate commercial license agreement, this project is licensed under MPL-2.0. See the repository LICENSE for the full MPL-2.0 text and NOTICE for copyright and commercial licensing notice.

Terms and Abbreviations

  • dB: decibel, a logarithmic unit used here for S-parameter magnitude.
  • GHz: gigahertz.
  • MPL: Mozilla Public License.
  • S2P: Touchstone two-port S-parameter file format.
  • Touchstone 1.0: original option-line Touchstone syntax without Touchstone 2.0/2.1 keyword blocks.
  • VS Code: Visual Studio Code.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft