slackhq / vscode-hack

Hack language & HHVM debugger support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pranayagarwal.vscode-hack
MIT License
76 stars 39 forks source link

How to use hackfmt to format new .hack files in visual studio code #87

Closed mrth2 closed 4 years ago

lexidor commented 4 years ago

I don't have enough information to give you an answer, but I am very willing to help. Are you using hhvm 4.x? You can check this by executing hhvm - -version. Hhvm 3.x can't understand dot hack files. If you are using 4.x, do dot hack files get the right syntax highlighting? If no, check your file associations for dot hack files. If it is not one of these causes, could you give me some more information?

mrth2 commented 4 years ago

Yes, i am using hhvm 4x and it get the right syntax highligting.

Hmm, i missed to add .hhconfig on the working directory. After added it, the .hack files can now be formatted using visual code studio default "format document".

On Dec 30, 2019, at 5:30 PM, Lexidor Digital notifications@github.com wrote:

I don't have enough information to give you an answer, but I am very willing to help. Are you using hhvm 4.x? You can check this by executing hhvm - -version. Hhvm 3.x can't understand dot hack files. If you are using 4.x, do dot hack files get the right syntax highlighting? If no, check your file associations for dot hack files. If it is not one of these causes, could you give me some more information?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slackhq/vscode-hack/issues/87?email_source=notifications&email_token=ACCB5XIIW3GLN7D5Y3MZN7TQ3HEVBA5CNFSM4KBKX572YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZ75TY#issuecomment-569638607, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCB5XI4SZAO7Z7DL3EA2VDQ3HEVBANCNFSM4KBKX57Q.