How to wrap text/comments in Visual Studio Code?
Can someone tell me the keyboard shortcut/menu path to wrap text, comments, etc in Microsoft's Visual Studio Code? I couldn't locate it in User Preferences
. Here's the screenshot which has a lot of comments that I'd like to wrap:
I know Sublime Text 2 has that option under Edit > Wrap
, but I couldn't find anything similar on Visual Studio Code.
ide
add a comment |
Can someone tell me the keyboard shortcut/menu path to wrap text, comments, etc in Microsoft's Visual Studio Code? I couldn't locate it in User Preferences
. Here's the screenshot which has a lot of comments that I'd like to wrap:
I know Sublime Text 2 has that option under Edit > Wrap
, but I couldn't find anything similar on Visual Studio Code.
ide
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34
add a comment |
Can someone tell me the keyboard shortcut/menu path to wrap text, comments, etc in Microsoft's Visual Studio Code? I couldn't locate it in User Preferences
. Here's the screenshot which has a lot of comments that I'd like to wrap:
I know Sublime Text 2 has that option under Edit > Wrap
, but I couldn't find anything similar on Visual Studio Code.
ide
Can someone tell me the keyboard shortcut/menu path to wrap text, comments, etc in Microsoft's Visual Studio Code? I couldn't locate it in User Preferences
. Here's the screenshot which has a lot of comments that I'd like to wrap:
I know Sublime Text 2 has that option under Edit > Wrap
, but I couldn't find anything similar on Visual Studio Code.
ide
ide
asked May 12 '15 at 7:23
Manish GiriManish Giri
2981411
2981411
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34
add a comment |
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34
add a comment |
2 Answers
2
active
oldest
votes
File > Preferences > Settings
New Setting UI (Searchable 🔎) 🎉 🎉 🎉
Just Search Wrap / Word Wrap
editor.wordWrap: "off" - Lines will never wrap. editor.wordWrap: "on" - Lines will wrap at viewport width
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
References: https://code.visualstudio.com/updates/v1_10#_word-wrap-settings-redesign and info from @jermila-dhas
Deprecated (For History Purpose/How JSON setting should look like)
For Beginner
Paste the following in settings.json
// Place your settings in this file to overwrite the default settings
{ "editor.wrappingColumn": 0 }
That it, it is that simpler, but probably we will having someone open source user interface for json settings.
For Intermediate User
If you already have settings.json
, just add
"editor.wrappingColumn": 0
As the settings is in JSON, last settings are without the comma ,
and setting is ending with }
as you see in Default settings and the settings.json
overide all the Default settings
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use"editor.wrappingIndent": "indent"
(ordeepIndent
).
– Qwertie
Jan 5 at 0:13
add a comment |
If you are using visual studio code v1.10, the setting "editor.wrappingCloumn"
has been deprecated.
Use "editor.wordWrap": "on"
instead.
More information can be found here
(Hoping this might help somebody)
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f622631%2fhow-to-wrap-text-comments-in-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
File > Preferences > Settings
New Setting UI (Searchable 🔎) 🎉 🎉 🎉
Just Search Wrap / Word Wrap
editor.wordWrap: "off" - Lines will never wrap. editor.wordWrap: "on" - Lines will wrap at viewport width
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
References: https://code.visualstudio.com/updates/v1_10#_word-wrap-settings-redesign and info from @jermila-dhas
Deprecated (For History Purpose/How JSON setting should look like)
For Beginner
Paste the following in settings.json
// Place your settings in this file to overwrite the default settings
{ "editor.wrappingColumn": 0 }
That it, it is that simpler, but probably we will having someone open source user interface for json settings.
For Intermediate User
If you already have settings.json
, just add
"editor.wrappingColumn": 0
As the settings is in JSON, last settings are without the comma ,
and setting is ending with }
as you see in Default settings and the settings.json
overide all the Default settings
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use"editor.wrappingIndent": "indent"
(ordeepIndent
).
– Qwertie
Jan 5 at 0:13
add a comment |
File > Preferences > Settings
New Setting UI (Searchable 🔎) 🎉 🎉 🎉
Just Search Wrap / Word Wrap
editor.wordWrap: "off" - Lines will never wrap. editor.wordWrap: "on" - Lines will wrap at viewport width
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
References: https://code.visualstudio.com/updates/v1_10#_word-wrap-settings-redesign and info from @jermila-dhas
Deprecated (For History Purpose/How JSON setting should look like)
For Beginner
Paste the following in settings.json
// Place your settings in this file to overwrite the default settings
{ "editor.wrappingColumn": 0 }
That it, it is that simpler, but probably we will having someone open source user interface for json settings.
For Intermediate User
If you already have settings.json
, just add
"editor.wrappingColumn": 0
As the settings is in JSON, last settings are without the comma ,
and setting is ending with }
as you see in Default settings and the settings.json
overide all the Default settings
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use"editor.wrappingIndent": "indent"
(ordeepIndent
).
– Qwertie
Jan 5 at 0:13
add a comment |
File > Preferences > Settings
New Setting UI (Searchable 🔎) 🎉 🎉 🎉
Just Search Wrap / Word Wrap
editor.wordWrap: "off" - Lines will never wrap. editor.wordWrap: "on" - Lines will wrap at viewport width
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
References: https://code.visualstudio.com/updates/v1_10#_word-wrap-settings-redesign and info from @jermila-dhas
Deprecated (For History Purpose/How JSON setting should look like)
For Beginner
Paste the following in settings.json
// Place your settings in this file to overwrite the default settings
{ "editor.wrappingColumn": 0 }
That it, it is that simpler, but probably we will having someone open source user interface for json settings.
For Intermediate User
If you already have settings.json
, just add
"editor.wrappingColumn": 0
As the settings is in JSON, last settings are without the comma ,
and setting is ending with }
as you see in Default settings and the settings.json
overide all the Default settings
File > Preferences > Settings
New Setting UI (Searchable 🔎) 🎉 🎉 🎉
Just Search Wrap / Word Wrap
editor.wordWrap: "off" - Lines will never wrap. editor.wordWrap: "on" - Lines will wrap at viewport width
editor.wordWrap: "on" - Lines will wrap at viewport width.
editor.wordWrap: "wordWrapColumn" - Lines will wrap at the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
editor.wordWrap: "bounded" - Lines will wrap at the minimum of viewport width and the value of editor.wordWrapColumn.
References: https://code.visualstudio.com/updates/v1_10#_word-wrap-settings-redesign and info from @jermila-dhas
Deprecated (For History Purpose/How JSON setting should look like)
For Beginner
Paste the following in settings.json
// Place your settings in this file to overwrite the default settings
{ "editor.wrappingColumn": 0 }
That it, it is that simpler, but probably we will having someone open source user interface for json settings.
For Intermediate User
If you already have settings.json
, just add
"editor.wrappingColumn": 0
As the settings is in JSON, last settings are without the comma ,
and setting is ending with }
as you see in Default settings and the settings.json
overide all the Default settings
edited Jan 6 at 3:50
answered Jun 3 '15 at 10:40
Edward Chan JWEdward Chan JW
60167
60167
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use"editor.wrappingIndent": "indent"
(ordeepIndent
).
– Qwertie
Jan 5 at 0:13
add a comment |
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use"editor.wrappingIndent": "indent"
(ordeepIndent
).
– Qwertie
Jan 5 at 0:13
4
4
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
Woww.... very nicely hidden. Well done Microsoft.
– Aliostad
Jul 22 '15 at 19:56
1
1
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Totally agree. But the performance and features make Visual Studio code ease to use for certain languages that supported.
– Edward Chan JW
Jul 23 '15 at 7:28
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
Take a look at all settings at gist.github.com/matijagrcic/… or press Press Ctrl+Shift+O in the list of default settings to see an outline of all available settings.
– Matija Grcic
Jul 25 '15 at 12:10
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
It was driving me nuts to have to scroll. Will need to checkout other settings. Thanks.
– thehme
Jan 16 '17 at 15:58
If you'd like to indent wrapped lines more than the initial line, use
"editor.wrappingIndent": "indent"
(or deepIndent
).– Qwertie
Jan 5 at 0:13
If you'd like to indent wrapped lines more than the initial line, use
"editor.wrappingIndent": "indent"
(or deepIndent
).– Qwertie
Jan 5 at 0:13
add a comment |
If you are using visual studio code v1.10, the setting "editor.wrappingCloumn"
has been deprecated.
Use "editor.wordWrap": "on"
instead.
More information can be found here
(Hoping this might help somebody)
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
add a comment |
If you are using visual studio code v1.10, the setting "editor.wrappingCloumn"
has been deprecated.
Use "editor.wordWrap": "on"
instead.
More information can be found here
(Hoping this might help somebody)
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
add a comment |
If you are using visual studio code v1.10, the setting "editor.wrappingCloumn"
has been deprecated.
Use "editor.wordWrap": "on"
instead.
More information can be found here
(Hoping this might help somebody)
If you are using visual studio code v1.10, the setting "editor.wrappingCloumn"
has been deprecated.
Use "editor.wordWrap": "on"
instead.
More information can be found here
(Hoping this might help somebody)
answered May 17 '17 at 17:59
Jermila DhasJermila Dhas
5111
5111
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
add a comment |
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f622631%2fhow-to-wrap-text-comments-in-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
FWIW, I've asked something similar on Stack Overflow but there I'm explicitly asking for a quick way to do this on a per instance basis (excluding the answer given to the question here).
– Jeroen
Dec 21 '15 at 22:34