How to wrap text/comments in Visual Studio Code?












19














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:



enter image description here



I know Sublime Text 2 has that option under Edit > Wrap, but I couldn't find anything similar on Visual Studio Code.










share|improve this question






















  • 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
















19














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:



enter image description here



I know Sublime Text 2 has that option under Edit > Wrap, but I couldn't find anything similar on Visual Studio Code.










share|improve this question






















  • 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














19












19








19


9





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:



enter image description here



I know Sublime Text 2 has that option under Edit > Wrap, but I couldn't find anything similar on Visual Studio Code.










share|improve this question













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:



enter image description here



I know Sublime Text 2 has that option under Edit > Wrap, but I couldn't find anything similar on Visual Studio Code.







ide






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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










2 Answers
2






active

oldest

votes


















33















File > Preferences > Settings




New Setting UI (Searchable 🔎) 🎉 🎉 🎉



Settings UI now Search Powered



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)



File > Preferences > User Settings



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






share|improve this answer



















  • 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" (or deepIndent).
    – Qwertie
    Jan 5 at 0:13



















5














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)






share|improve this answer





















  • It definitely helped me! Thanks...
    – yobro97
    Jul 21 '17 at 2:54











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
});


}
});














draft saved

draft discarded


















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









33















File > Preferences > Settings




New Setting UI (Searchable 🔎) 🎉 🎉 🎉



Settings UI now Search Powered



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)



File > Preferences > User Settings



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






share|improve this answer



















  • 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" (or deepIndent).
    – Qwertie
    Jan 5 at 0:13
















33















File > Preferences > Settings




New Setting UI (Searchable 🔎) 🎉 🎉 🎉



Settings UI now Search Powered



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)



File > Preferences > User Settings



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






share|improve this answer



















  • 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" (or deepIndent).
    – Qwertie
    Jan 5 at 0:13














33












33








33







File > Preferences > Settings




New Setting UI (Searchable 🔎) 🎉 🎉 🎉



Settings UI now Search Powered



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)



File > Preferences > User Settings



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






share|improve this answer















File > Preferences > Settings




New Setting UI (Searchable 🔎) 🎉 🎉 🎉



Settings UI now Search Powered



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)



File > Preferences > User Settings



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







share|improve this answer














share|improve this answer



share|improve this answer








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" (or deepIndent).
    – Qwertie
    Jan 5 at 0:13














  • 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" (or deepIndent).
    – 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













5














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)






share|improve this answer





















  • It definitely helped me! Thanks...
    – yobro97
    Jul 21 '17 at 2:54
















5














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)






share|improve this answer





















  • It definitely helped me! Thanks...
    – yobro97
    Jul 21 '17 at 2:54














5












5








5






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)






share|improve this answer












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)







share|improve this answer












share|improve this answer



share|improve this answer










answered May 17 '17 at 17:59









Jermila DhasJermila Dhas

5111




5111












  • 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




It definitely helped me! Thanks...
– yobro97
Jul 21 '17 at 2:54


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b