Visual Studio Code Extension for SASjsThis project contains the source code for the SASjs VS Code extension, available in the following locations:
If you have questions or would like support on the extension, visit our support group at https://matrix.to/#/#sasjs:4gl.io. Features
Code DocumentationGenerate HTML docs from your SAS code! Requires a local installation of Doxygen. Video overview available here. Configuration is identical to the SASjs CLI, documented at https://cli.sasjs.io/doc, driven by the docConfig object. Given that projects may be new to SASjs (without a
To view the Code ExecutionYou can run code on SAS Viya, SAS 9 EBI or SASjs Server! Just set up the target, and click the running man to execute your SAS code. You can also highlight a section of code and run that. Each log returned will be stored in a The target 🎯 describes the server on which you intend to run the code. The attributes are added to a file in your home directory - The following attributes are needed for all server types:
Below are the setup steps specific to each server type SAS ViyaEnter the following prompts:
SAS9 EBIFor a SAS9 server type, you need to provide your user and passsword in the prompts. Before you can execute code, you will need a runner (an STP in your metadata home directory) - just follow the instructions here: https://cli.sasjs.io/auth/#sasjs-runner https://user-images.githubusercontent.com/4420615/174494256-8676a5e3-9dd2-45a7-bc67-2a5c2355c182.mp4 If you are using self-signed certificates and are unable to connect due to
SASjs ServerIn order to run on Foundation / Base / Desktop SAS you will need a running version of SASjs server (on the same machine where SAS is installed). You can download SASjs server here. Configuration instructions are here. For local desktop instances of SASjs Server, the serverUrl is likely to be http://localhost:5000 If you are running SASjs Server in server mode, then you will need a client id - the default is Directory SynchronisationSometimes when working with SAS, you would like to supply some physical content (eg macros, format definitions, Excel, images, etc) to the remote SAS server. The It works by hashing the remote files, comparing the hashes with the local files, and deploying only the changed files. No SSH access needed, all files are deployed using 100% SAS Code. More information is in the cli docs and this explanatory video. To configure, just add the SAS Lint and FormatSpend less time on code reviews and more time pushing code! Select VIEW->PROBLEMS (or ctrl+shift+M) to examine the currently opened SAS program for issues. RulesRules can be configured by creating a
Settings in the project (workspace) root (
FormattingSASjs lint can automatically fix certain problems within SAS files, such as trailing spaces, missing Doxygen header blocks and missing macro names in
Compile, Build and DeploySingle FileIf a Projectif a SnippetsSnippets (code-completion) are provided both for Base SAS (using the official SAS VS Code Extension files) and SASjs Core (using the snippets generator of the SASjs CLI). To use snippets, just start typing SAS macro name, eg: ContributionsSASjs is an open source project, and contributions are warmly welcomed! Contributors ✨Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome! |