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

Allow to customize word wrap for each language #2253

Closed
alefragnani opened this issue Jan 25, 2016 · 7 comments
Closed

Allow to customize word wrap for each language #2253

alefragnani opened this issue Jan 25, 2016 · 7 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@alefragnani
Copy link

It would be interesting to have the ability to define different word wrap values for different languages, specially if you use Code for editing normal programming languages like JavaScript, Pascal and non programming languages, like Markdown.

I tend to respect the word wrap values defined in the main IDE for a particular language (if exists/is used), and turn off word wrap for for Markdown/Log/Text files. But today, in Code I only have settings for the Editor (editor.wrappingColumn and editor.wrappingIndent).

Thanks in advance

@axefrog
Copy link

axefrog commented Jun 17, 2016

Agreed. This issue is also described in #6925.

@alexdima
Copy link
Member

@bpasero @aeschli Any thoughts here? The editor API can handle this as it's all dynamic anyways, we would need something in the configuration service.

@alexdima alexdima removed their assignment Jun 17, 2016
@alexdima alexdima added workbench and removed editor labels Jun 17, 2016
@bpasero
Copy link
Member

bpasero commented Jun 17, 2016

Well, no further thinking has happening in this space. I think it boils down to finding a good syntax in our settings file so that you can express per language settings. We have not decided on a syntax to express this. Whatever we come up with also needs to support validation within, so it might be more tricky.

@jmm
Copy link

jmm commented Jun 24, 2016

@bpasero @alexandrudima I'm really confused: aren't keys named {{language}}.something in the settings file expressing per language settings? Example:

JavaScript Configuration - Language specific settings

// Defines space handling after a comma delimiter
"javascript.format.insertSpaceAfterCommaDelimiter": true,

More specifically I saw an html.format.wrapLineLength prop in the default settings and tried to apply it to JS as javascript.format.wrapLineLength but it doesn't work. @nchammas also reported in #6925 that it doesn't even work for HTML.

// Maximum amount of characters per line (0 = disable).
"html.format.wrapLineLength": 120,

@bpasero
Copy link
Member

bpasero commented Jun 25, 2016

That is true but we do not support this kind of configuration for other editor settings, hence this is a valid and still open feature request that needs thinking.

@micnic
Copy link

micnic commented Oct 9, 2016

It there any progress in this direction?

@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 11, 2016
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 11, 2016

Closing as a duplicate of #1587, which tracks a more general approach that would allow settings (including editor.wrappingColumn and editor.wrappingIndent) to be applied per language / file type.

@mjbvz mjbvz closed this as completed Nov 11, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

8 participants