Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sfm-cz/beautyAmp
Format/Beautify/Prettify your AMPscript with this VS Code Extension.
https://github.com/sfm-cz/beautyAmp
Last synced: 3 months ago
JSON representation
Format/Beautify/Prettify your AMPscript with this VS Code Extension.
- Host: GitHub
- URL: https://github.com/sfm-cz/beautyAmp
- Owner: sfm-cz
- License: bsd-4-clause
- Created: 2020-07-17T16:56:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T18:24:54.000Z (over 3 years ago)
- Last Synced: 2024-07-28T13:18:53.622Z (3 months ago)
- Language: JavaScript
- Size: 4.43 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-sfmc - AMPScript Beautifier
README
# AMPScript Beautifier
Format (Beautify/Prettify) your SFMC AMPscript with this extension.
Originaly developed with Merkle DACH (former Isobar Switzerland) and now available to the developer community.
## Features
* Automatic formatting (indentation, methods, etc.).
* Setting of Case-sensitivity of the keywords.## Usage
1. Mark your file as AMPscript (save as `.amp` or using the `Language Mode` selector)
2. Run `Format Document` command.![Beautifier](https://raw.githubusercontent.com/fib-at-isobar/beautyAmp/master/images/beautyAmp.gif)
The format command can also run automatically if your settings allow for it (settings: `editor.formatOnSave`).
## Extension Settings
This extension contributes the following settings:
* `beautyAmp.maxParametersPerLine`: How many method parameters can be located on one line?
* `beautyAmp.capitalizeVar`: Use upper case characters for 'VAR' keywords (false for lowercase).
* `beautyAmp.capitalizeSet`: Use upper case characters for 'SET' keywords (false for lowercase).
* `beautyAmp.capitalizeAndOrNot`: Use upper case characters for 'AND', 'OR', 'NOT' keywords (false for lowercase).
* `beautyAmp.capitalizeIfFor`: Use upper case characters for 'IF' and 'FOR' blocks keywords (false for lowercase).Default values can be found in Features Contributions.
## Known Issues
* Statements and For iterations are not fully formatted,
* NOT is not formatted
* Function and Variable names are not handled.
* HTML beautifier is currently not included.