Search Unity

MonoDevelop - word wrap?

Discussion in 'Formats & External Tools' started by KyleStaves, Oct 26, 2010.

  1. KyleStaves

    KyleStaves

    Joined:
    Nov 4, 2009
    Posts:
    821
    Does anyone know how to enable word wrap in MonoDevelop by chance?
     
  2. Vimalakirti

    Vimalakirti

    Joined:
    Oct 12, 2009
    Posts:
    755
    Good Question!
     
  3. Jesse Anders

    Jesse Anders

    Joined:
    Apr 5, 2008
    Posts:
    2,857
    Hm, I'm looking for this also. A Google search for 'monodevelop word wrap' returns...this thread :) Hoping it's somewhere obvious and I'm just missing it...
     
  4. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Hi,
    Line wrapping is currently not supported in MonoDevelop.
     
  5. Vimalakirti

    Vimalakirti

    Joined:
    Oct 12, 2009
    Posts:
    755
    Fortunately MonoDevelop doesn't mind if you throw in random line returns in the middle of a line to break it up. Self-word-wrap!
     
  6. Somian

    Somian

    Joined:
    Nov 22, 2011
    Posts:
    38
    that's not really a solution :/ when u resize the window, it won't be wrapped correctly and it adds to the line numbers.
     
  7. metaleap

    metaleap

    Joined:
    Oct 3, 2012
    Posts:
    589
    Almost a full 3 years later and I need this too. And here I am, looking at this thread! What in the heck.............
     
  8. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,433
    MonoDevelop is for writing code. Where you break a line of code should be up to you, not the editor. Many programming languages are very picky about where a line ends, or is split into two. (C# and JavaScript are pretty forgiving languages, but Boo and others depend on accurate indentation.)

    If you're writing paragraphs of text, then I suggest you use a text editing tool, made for text editing. Unity3D will work just fine if you edit your files with other applications.
     
  9. metaleap

    metaleap

    Joined:
    Oct 3, 2012
    Posts:
    589
    Not sure why Unity opened this text file with MD instead of system default, but it did.. And well, Sublime Text "is for writing code" and yet it has this utterly trivial use-case covered for the rare occurence of opening a non-code text file without breaking productivity / "flow". I was searching for quite a while through all of MDs menus for one stupid ridiculous reason only: I couldn't believe this mindbogglingly basic feature wasn't there :D :D

    So yeah, MD has been aging I guess.. I hear there's a new MD version coming with 4.3, I'm crossing my fingers for that one. Would switch to ST if there was a way to have IntelliSense-like tool-tips with member infos..
     
  10. iqsoup

    iqsoup

    Joined:
    Jul 19, 2013
    Posts:
    3
    Word-wrap doesn't add to the lines or actually split them in any way. It just makes line LOOK like a long line is continued on in a lower line. If you shrink down your window more any of the lines now cut off by the edge of the window will get wrapped as well. It doesn't actually edit the code in any way--just doesn't let things run off the screen where you can't see them. Notepad++ has this option and I find it super useful. I'm surprised Monodevelop doesn't have something similar. Any one find any way to do this?
     
  11. stoat77

    stoat77

    Joined:
    Feb 21, 2014
    Posts:
    4
    Monodevelop not having word wrap is hilarious. When clicking on a readme, Unity opens it in monodevelop, it's unreadable and I have to open it with sublime text or notepad or whatever. Has this utterly basic feature been implemented yet?
     
    twobob, roddles and robitster like this.
  12. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    MonoDevelop sucks on many different levels. If I didn't have to use it for debugging I would have it uninstalled because it doesn't deserve even a single byte of my hard drive space. First thing they should do is to make that crap actually work for its initial purpose, write code, and then maybe think about adding more features.

    Anyway, word wrap is not just a simple feature no matter how easy to implement that may look like. It took me a couple of months to implement the word wrap feature in Script Inspector 2 actually! And yes, the main purpose of adding that was to allow viewing and editing text files, such as readme files, which are otherwise unreadable without word wrapping.
     
    roddles likes this.
  13. bemed

    bemed

    Joined:
    Jul 14, 2013
    Posts:
    8
    I'm on 4.5 and no word wrap so far.

    Bummer!

    :(
     
  14. Lea

    Lea

    Joined:
    Jun 20, 2014
    Posts:
    3
    Wait what, the default text editor on Unity doesn't support word-wrapping? Guess I'm installing Visual Studio...
     
  15. gclsoft

    gclsoft

    Joined:
    Sep 20, 2013
    Posts:
    5
    Waiting for the bug fix, too!
     
  16. aharnam

    aharnam

    Joined:
    Sep 25, 2014
    Posts:
    3
    this feature is definitely needed
     
  17. illustir

    illustir

    Joined:
    Dec 12, 2014
    Posts:
    24
    Really, no word wrap? In an editor?!

    This (as well as the tons of other missing basic features in Monodevelop) make it pretty hard not to get annoyed by Unity when you are getting into it.
     
    twobob likes this.
  18. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    I hate that Intellisense likes to go crazy and stop working when you make a line too long. I switched to VS and will probably never look back. My friend uses Notepad++ and swears by it...
     
  19. bemed

    bemed

    Joined:
    Jul 14, 2013
    Posts:
    8
    I'm on a Mac so no chance on using Visual Studio.

    I might give a shot on Sublime Text 3 with the Unity3D plugins.
     
  20. fabian-mkv

    fabian-mkv

    Joined:
    Nov 14, 2015
    Posts:
    13
    Maybe you guys are talking about something else or maybe this is new in Unity, but I was able to disable word wrap in the options:
    In Monodevelop, Tools -> Options -> Text Editor -> C# -> General -> (Right pane under Settings section) Word wrap.
     
  21. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @fabian.mkv The discussion was about MonoDevelop not having word wrap option. If you have disabled it in the newer version of MD that now ships with Unity then it means that there is now a word wrap option in this newer version.
     
  22. Poemind

    Poemind

    Joined:
    May 25, 2011
    Posts:
    30
    @fabian.mkv Where is that exactly? I'm looking and I see nothing of the sort either in the menu bar OR in the preferences. Maybe I'm missing something.
     
    twobob likes this.
  23. zero_null

    zero_null

    Joined:
    Mar 11, 2014
    Posts:
    159
    I need this too :(
     
  24. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
    I'm not seeing it either. Specifically, this is a new install of Unity on Mac.
     
  25. Vimalakirti

    Vimalakirti

    Joined:
    Oct 12, 2009
    Posts:
    755
  26. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
    My problem ended being solved by Unity crashing on my Mac Mini with a very minor program, so I'm not going to be able to use that computer anyhow. I'll just remote to my PC which has better software anyhow.

    Thanks, though!
     
  27. kdragos

    kdragos

    Joined:
    Jun 25, 2016
    Posts:
    13
    So, seven years later and still no word wrap? lol!
     
    twobob likes this.
  28. originalterrox

    originalterrox

    Joined:
    Feb 6, 2015
    Posts:
    40
    7+ years and no word wrapping in a code editor. Is this a joke?
     
  29. SoshJam

    SoshJam

    Joined:
    Dec 23, 2016
    Posts:
    8
    I have a huge array and need word wrap.
     
  30. SoshJam

    SoshJam

    Joined:
    Dec 23, 2016
    Posts:
    8
    So I am manually pressing enter after every line. It's pretty tiring.
     
  31. sngdan

    sngdan

    Joined:
    Feb 7, 2014
    Posts:
    1,154
    I can highly recommend script inspector 3, it does not fully replace md (ie debugging) but is pretty good for 95% of the time

    It also has word wrap ;)
     
    Flipbookee likes this.
  32. twobob

    twobob

    Joined:
    Jun 28, 2014
    Posts:
    2,058
    This is a forked version right?
    Looks at github...
    Where do I vote ;)