Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max line length #350

Closed
NatoBoram opened this issue Oct 28, 2020 · 6 comments
Closed

Max line length #350

NatoBoram opened this issue Oct 28, 2020 · 6 comments
Labels
enhancement New feature or request formatting
Milestone

Comments

@NatoBoram
Copy link

NatoBoram commented Oct 28, 2020

Some projects use an .editorconfig file to specify a maximum line length for most of their documents. It would be nice to have this setting attempted to be respected, or at least have an option to specify it, so it could be done automatically in a deterministic way.

Example :

<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<activity
  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  android:hardwareAccelerated="true" android:name=".MainActivity"
  android:launchMode="singleTop" android:theme="@style/LaunchTheme"
  android:windowSoftInputMode="adjustResize"
>
@angelozerr
Copy link
Contributor

You speak about formatting, is that?

@NatoBoram
Copy link
Author

Yes!

@angelozerr
Copy link
Contributor

@angelozerr angelozerr added this to the 0.23.0 milestone Dec 9, 2022
@raduten
Copy link

raduten commented May 26, 2023

Hello - new to VSCode. Coming from eclipse. Where can I add xml.format.maxLineWidth ? Formatting.md? I have the pre-release versions of vs-code and redhat xml language support.

Thanks!

@fbricon
Copy link
Collaborator

fbricon commented May 26, 2023

@raduten xml.format.maxLineWidth must be set in your VS Code settings

@raduten
Copy link

raduten commented May 26, 2023

Thanks! Managed to do it. Needed to open settings.json using this command: Preferences: Open Settings (JSON) . Then add the new setting in the json file itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request formatting
Projects
None yet
Development

No branches or pull requests

4 participants