-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Not wrapping matlab files #72
Comments
Hi, Matlab isn't supported yet; I need to add it :) I was just reading the docs. Is it correct that comment lines beginning with two '%'s (code section titles) should not be wrapped? |
I have been using with matlab/octave for a while--must have just been lucky I guess :-) I don't use the %% thing, and it doesn't seem supported in vscode (at least, in the extension mentioned above). In matlab's own editor %% provides some highlighting (and perhaps even folding in more recent versions). However, neither of the two options below for wrapping a section heading appear to work. The first option creates two sections, and the second option is just a comment following the section heading. So, I guess the short answer is that %% lines shouldn't be wrapped. %% this is a section %% this is another code section |
Thanks! That was exactly what I needed to know. |
This will be in the next version, releasing this weekend. Note: you will need the extension instaled for wrapping to work (since without it, vscode marks .m files as Objective-C) |
Great! Thanks very much. |
Now in v1.7.0. Closing, but let me know if anything's not working. |
I had a quick look, and its working well. Thanks again. |
Many thanks for Rewrap. With vscode 1.19.3 and Rewrap 1.6.1, I can't get text to wrap for either in-line comments (i.e., beginning with %) or block comments (%{ ... %}) for matlab (.m) files. For an ordinary text file (.txt) it appears fine. Vscode seems to note something has happened, as Alt-Q triggers the unsaved file notification--but I can't see any actual difference in the text.
I have the matlab extension (0.80, Xavier Hahn) installed, but removing it made no difference.
I have tried both Alt-Q and via F1.
The text was updated successfully, but these errors were encountered: