A collection of utilities that facilitate SAS code development.
- Windows
- Notepad++
- Python
- Git for Windows
- Clone the project.
- Add
source utils.sh
to your.bashrc
using actual path to the file. - Incorporate
<Command>
tag into your Notepad++ settings file (how to find it). It adds run configuration and assigns Ctrl + B shortcut for that action. - Set actual path to the cloned directory in the
<Command>
tag. - Make sure that the shortcut has no other assignment (Settings — Shortcut Mapper...). By default, that is Go to matching brace. Otherwise, you need to assign another keyboard shortcut for the action.
Note: As of now, that only works if all SAS files you search in are located in the same directory.
- Open SAS file with Notepad++.
- Either select a variable or function name or put caret there.
- Invoke Run — SAS macro search. Its default keyboard shortcut is Ctrl + B.
- Open Git Bash.
- Navigate to a directory that contains your SAS files.
- Put the actual macro function name into the command below. Quotes are optional.
sm 'macro_function_name'