{"id":51679366,"url":"https://github.com/adrogin/al-prettier","last_synced_at":"2026-07-15T11:04:28.746Z","repository":{"id":353509240,"uuid":"1215164066","full_name":"adrogin/al-prettier","owner":"adrogin","description":"Prettier plugin for Business Central's AL language","archived":false,"fork":false,"pushed_at":"2026-07-10T09:12:42.000Z","size":1513,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-10T10:04:36.972Z","etag":null,"topics":["al","bcopensource","code","formatter","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrogin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-19T15:08:01.000Z","updated_at":"2026-07-10T08:02:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8a793f1-9ca3-4c5a-b3a8-d91eafce30fe","html_url":"https://github.com/adrogin/al-prettier","commit_stats":null,"previous_names":["adrogin/al-prettier"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/adrogin/al-prettier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrogin%2Fal-prettier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrogin%2Fal-prettier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrogin%2Fal-prettier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrogin%2Fal-prettier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrogin","download_url":"https://codeload.github.com/adrogin/al-prettier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrogin%2Fal-prettier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35501666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["al","bcopensource","code","formatter","vscode-extension"],"created_at":"2026-07-15T11:04:28.080Z","updated_at":"2026-07-15T11:04:28.740Z","avatar_url":"https://github.com/adrogin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AL Prettier for VS Code\n\nA [Prettier](https://prettier.io/) plugin for AL language and a VS Code extension that provides code formatting using this plugin.\n\n\u003cimg width=\"1412\" height=\"868\" alt=\"Code_QmgRFcuCtz\" src=\"https://github.com/user-attachments/assets/ccc4096f-a785-4199-aa7f-abe2ea134885\" /\u003e\n\n\n## Installation\n\n1. Install from VS Code Extensions Marketplace (direct link: [AL Prettier](https://marketplace.visualstudio.com/items?itemName=alexander-drogin.al-prettier-vscode) or search for \"AL Prettier\")\n2. Or install manually by downloading the `.vsix` file and running `code --install-extension al-prettier-vscode-0.4.1.vsix`\n\n## Usage\n\n### Format Document\n- Use the keyboard shortcut: `Shift+Alt+F` (Windows/Linux) or `Shift+Option+F` (macOS)\n- Or right-click and select \"Format Document\"\n\n### Format Selection\n**Selection formatting is currently not supported. This feature will be available in future releases.**\n\n### Format on Save\nEnable format on save in VS Code settings:\n```json\n{\n  \"[al]\": {\n    \"editor.defaultFormatter\": \"alexander-drogin.al-prettier-vscode\",\n    \"editor.formatOnSave\": true\n  }\n}\n```\n\n## Configuration\n\nYou can customize the formatting behavior in VS Code settings:\n\n```json\n{\n  \"alPrettier.tabWidth\": 4,\n  \"alPrettier.useTabs\": false,\n  \"alPrettier.printWidth\": 120,\n  \"alPrettier.groupGlobalVars\": \"none\",\n  \"alPrettier.noLineBreaksInAttributes\": false,\n  \"alPrettier.removeEmptyElements\": false,\n  \"alPrettier.collapseEmptyBraces\": true\n}\n```\n\n### Options\n\n- **tabWidth** (default: 4): Number of spaces per indentation level\n- **useTabs** (default: false): Use tabs instead of spaces for indentation\n- **printWidth** (default: 120): Specify the line length that the printer will wrap on\n- **groupGlobalVars** (default: \"none\"): Group all global vars in the object. Available options: \"none\" - keep the variables as is; \"top\": move all variable declarations to the top, after the object properties; \"bottom\": move variables to the bottom; \"beforeCode\": place variables before procedures.\n- **noLineBreaksInAttributes** (default: false): Disable wrapping of procedure attributes even if the line exceeds maximum print width. Attributes are always printed in a single line.\n- **removeEmptyElements** (default false): Remove elements without content (this includes table fieldgroups, page actions and layout sections)\n- **collapseEmptyBraces** (default true): Place curly braces without content between them on one line. This option applies, for example, to table field or key definitions without properties.\n\n## Requirements\n\n- VS Code 1.75 or later\n- AL language support (from Microsoft Dynamics 365 Business Central AL Language extension)\n\n## Known issues and limitations\n\n- Requires valid AL syntax to format correctly. Formatting of an AL statement that cannot be parsed correctly will throw an error.\n- Range formatting is in development and currently not implemented.\n- Report objects with embedded RDLC layout are not supported.\n\n## Contributing\n\nContributions are welcome! Please submit issues and pull requests to the repository.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrogin%2Fal-prettier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrogin%2Fal-prettier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrogin%2Fal-prettier/lists"}