vscode-lua icon indicating copy to clipboard operation
vscode-lua copied to clipboard

Setting lua.format.lineWidth seems to no longer work in VS code

Open daw00kie opened this issue 7 years ago • 3 comments

It just uses the default of 120 no matter what you put in

daw00kie avatar Jul 06 '18 07:07 daw00kie

I haven't been able to reproduce this, is this still an issue in later versions of VSCode? Its working as intended in my version:

Version: 1.31.0-insider (user setup)
Commit: e02e44464c02d617b98d0a3265bf5efef7794436
Date: 2018-12-21T06:20:35.852Z
Electron: 3.0.10
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763

trixnz avatar Dec 23 '18 22:12 trixnz

Can someone please explain, how or where I set the lua.format.lineWidth = x

This extension is great, but documentation is a bit lacking :( Thanks

geoffw123 avatar Mar 04 '19 11:03 geoffw123

@geoffw123 That is a setting that the extension supplies to VSCode.

Nowadays there is a GUI for settings (ctrl+comma), but there is also a tiny button to open the underlying settings.json file, and that's where you would see/change the "lua.format.lineWidth" value if you change it from the default 120.

In the GUI it appears as "Lua > Format: Line Width".

mcbits avatar Aug 22 '19 21:08 mcbits