Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SAS-SyntaxNew to Visual Studio Code? Get it now.
SAS-Syntax

SAS-Syntax

77qingliu

|
34,699 installs
| (5) | Free
syntax highlihter for SAS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SAS Language Definition for VSCode

Syntax highlighting for the SAS files in VsCode, with precise syntax match, SAS like theme and code snippets. The syntax highlighting uses tmLanguage files sourced from https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json.

Features

Data Step

Proc SQL

Inside Macro

Statistical Procedure

Extension Settings

Firstly, change syntax engine to SAS

  • toggle CTRL+SHIFT+P to open the command panel
  • enter change language mode
  • select SAS

Secondly, change theme to SAS

  • toggle CTRL+SHIFT+P to open the command panel
  • enter color theme
  • select SAS

Known Issues

Syntax parse error if there are unmatched ' or " even if being marked by macro mask

For more information

Enjoy!

TO-DO

  • [x] Add code snippets
  • [ ] More proc grammer into syntax and the corresponding snippets
    • [x] CATALOG
    • [x] CONTENTS
    • [x] DATASETS
    • [x] EXPORT
    • [x] IMPORT
    • [x] SGPLOT
    • [ ] TEMPLATE
    • [x] PRINT
    • [x] RANK
    • [x] FREQ
    • [x] CORR
    • [x] UNIVARIATE
    • [x] ANOVA
    • [x] CLUSTER
    • [x] FACTOR
    • [x] REG
    • [x] SURVEYSELECT
    • [x] LOGISTIC
    • [x] LIFETEST
    • [x] TRANSPOSE
    • [x] APPEND
    • [x] CPORT
    • [x] FASTCLUS
    • [x] GLM
    • [x] MIXED
    • [x] NPAR1WAY
    • [x] TTEST
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft