Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Igor ProNew to Visual Studio Code? Get it now.
Igor Pro

Igor Pro

fujidana

|
461 installs
| (1) | Free
Igor Pro support for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Igor Pro Extension for Visual Studio Code

The extension helps you editing Igor procedure files (*.ipf).

The author of this extension is just a Igor Pro user and has no more relation with Wavemetrics, Inc., which develops Igor Pro itself. Use GitHub issues for bug reports and feature requests about this extension.

The textual contents of the IntelliSens code hints are cited from the official manual (manual revision: June 24, 2022 (9.01)) and the in-app command helps (application version: 9.01 (Build 39200)).

Features

  • Diagnostics - syntax check
  • basic linguistic support for editing - comment toggling, indentation adjustment, etc.
  • syntax highlighting - colorizing symbols using a grammar
  • IntelliSens - code completion and hinting
    • hovers
    • code completion proposals - autocompletion that works during a user types a symbol
      • code snippets - templates that make it easier to enter repeating code patterns, such as loops and conditional-statements
    • Help with function signatures - help that appears during a user types an argument in a function call
  • Code navigation
    • Symbol navigation inside a document - available from Go to Symbol in Editor (Ctrl+Shift+O) menubar item and the navigation bar at the top the editor pane (aka breadcrumbs)

Currently IntelliSense features support user-defined constants, structure, macros, and functions, in addition to built-in keywords, functions and operations; it does not cover local parameters (variables, strings, wave references, etc.) inside user-defined functions.

Known Issues

Code Helps not complete

Code hinting database currently lacks descriptive messages of most symbols (See Issue #1). Contribution to the point is very welcome.

Restricted Behaviors of Indentation Adjustment

While Igor Pro procedure is case-insensitive, the indentation adjustment feature of VS Code works based on a case-insensitive pattern matching. Also, it does not work perfectly on switch and strswitch flow controls. They are due to the limitation of the indentation adjustment feature of VS Code. See Language Configuration Guide / Indentation Rules.

Limitations of Syntax Highlighting

While Igor Pro allows function declarations which span several lines, this extension can not colorize them properly, owing to the limitation of the syntax highlithing grammar of VS Code. It is recommended to declare functions in a single line.

// multi-line definition appeared in IgorMan.pdf, not colorized properly
Function Example2(
    Variable a, // The comma is optional
    [
        Variable b,
        double c
    ]
    )
    Print a,b,c
End

// single-line definition, colorized properly
Function Example2(Variable a, [Variable b, double c])
    Print a,b,c
End

Limitations of Diagnostics

The current syntax parser is far from perfect. If you find any problems, report it on GitHub issues.

In Igor Pro, several Operations such as FuncFit and MatrixOp have a special grammar that is different from the basic syntax used for arithmetic calculation, etc. To avoid lines of such an Operation being listed in "Problems" view of VS Code, currently the parser simply skips strict syntax check when the line starts with a built-in Operation name.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft