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

"/" treated as a word wrap separator character when it shouldn't be #105036

Closed
John-Dean opened this issue Aug 19, 2020 · 2 comments
Closed

"/" treated as a word wrap separator character when it shouldn't be #105036

John-Dean opened this issue Aug 19, 2020 · 2 comments

Comments

@John-Dean
Copy link

  • VSCode Version: 1.48.0
  • OS Version: Windows 10 2004

Steps to Reproduce:

  1. Open a html file and enable word wrap
  2. Add a INSERT TEXT HERE tag and add text until word wrap is triggered
  3. The text will wrap as follows:
<span class="test">labore</
span> et dolore...

EXPECTED BEHAVIOUR (To wrap the entire closing tag together):

<span class="test">labore
</span> et dolore...

Editing: Editor: Word Separators (Characters that will be used as word separators when doing word related navigations or operations.) does not alter the word wrap settings for this.

Can a new setting be added for word wrap seperators (Characters that will be used as word separators when doing word wrap operations.) so characters such as "-", "_", "/", "" and "~" can be enabled/disabled to the users preferences. It is easier to edit HTML when the whole tag word wraps instead of partially wrapping.

Does this issue occur when all extensions are disabled?: Yes/No

@vscodebot
Copy link

vscodebot bot commented Aug 19, 2020

@John-Dean
Copy link
Author

Found the setting:
"editor.wordWrapBreakAfterCharacters"

vscode/src/vs/editor/common/config/editorOptions.ts (Line 292)

Can be configred in settings as such:
"editor.wordWrapBreakAfterCharacters": " \t})]?|&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」"

to remove "/" as a word break character - fixing the issue (dispite settings saying "Unknown configuration setting").

@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant