GithubHelp home page GithubHelp logo

tpokorra / al-formatter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rasmustidselbak/al-formatter

0.0 2.0 0.0 3.94 MB

Formatting AL language files in VS Code

License: MIT License

TypeScript 88.08% AL 11.92%

al-formatter's Introduction

VS Code extension for formatting AL files.

Formatting Example

Features

  • Indentation
  • Keyword case style
  • Sort variable definitions
  • Readability Guidelines - Spacing and newlines (experimental)

Usage

To format a file click alt + shift + f or use the format document feature in VS Code.

Report an Issue

Issues can be reported to the project on Github.

Rebuild the VS Code extension

git clone https://github.com/RasmusTidselbak/al-formatter.git
cd al-formatter/server
npm install -D
export PATH=`pwd`/node_modules/.bin:$PATH
npm run compile
cd ../client
npm install -D
export PATH=`pwd`/node_modules/.bin:$PATH
vsce package

In Development

  • RDLC Reports
  • XMLPorts
  • Lists, Dictionaries and Control Addins

Changes

2.0.1

  • Fixed a couple of issues when indenting IF THEN ELSE statements, DO WHILE and BEGIN END
  • Implemented an entire new code structure, which is more dynamic
  • Implemented newline and spacing. Enable it under settings - alForm.experimental

1.1.1

  • Fixed an issue with var parameters in procedure definitions

1.1.0

  • Implementet the readability guidlines for variable definition and operators.
  • Fixed an issue with textconst definitions
  • Fixed an issue with wrong casing on object definitions

al-formatter's People

Contributors

rasmustidselbak avatar tpokorra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.