Is there any way you can make IntelliJ wrap scaladoc at the margin?
Basically, I want this:
/**
* This is a method description that is long enough to exceed right margin.
* <p/>
* Another paragraph of the description placed after blank line.
* <p/>
* Line with manual
* line feed.
to be formatted to this:
/**
* This is a method description that is long
* enough to exceed right margin.
* <p/>
* Another paragraph of the description
* placed after blank line.
* <p/>
* Line with manual line feed.
*
... if the line length is set to end here:
^
There is a dedicated setting for that - 'Ensure right margin is not exceeded'
Related
When I auto re-indent my code in VS Code, multi-line comments are indented with the asterisks not vertically aligned. I would like them to be aligned so that I can comply with jsdoc-format.
How can I force it to align the asterisks vertically?
Here is an illustration:
/**
* How VSCode indents it
*/
/**
* How I want it
*/
Assuming the structure:
* test
some text
+ test2
some text
* heading
some text
After one cycle to the "test" heading the structure becomes:
* test
+ test2 ...
* heading ...
However, once I have the cursor on "heading" and hit tab to cycle, it opens heading but it also opens test2!! Just like the above assumption.
Where I was hoping for this instead to happen:
* test
+ test2 ...
* heading
Some text
Only when running with emacs vanilla (-q) it does not bother unfolding any parent or same level heading/plain list.
I have a blank .emacs file, so it is nothing in my configuration that does this. Could someone help explain the reason?
I want to put an example in JavaDoc:
/***
* This will filter out symbols like:
* Waving White Flag U+1F3F3 {#literal "\uD83C\uDFF3"} in Miscellaneous Symbos and Pictographs.
* …
*/
I've tried #code, #literal, and <pre> none of which seem to keep it, but it'd be nice if it was legible both in the doc and source. I also can't seem to put "\uD83C\uDFF3" into those for the fixed width rendering.
I'd like it to read like:
This will filter out symbols like: Waving White Flag U+1F3F3 "\uD83C\uDFF3" in Miscellaneous Symbos and Pictographs. …
Encode the backslash as \u005C to hijack the unwanted encoding, and use <code></code>:
/**
* This will filter out symbols like:
* Waving White Flag U+1F3F3 <code>"\u005CuD83C\u005CuDFF3"</code> in Miscellaneous Symbos and Pictographs.
* …
*/
I would love to find a way to left-align text so that paragraphs line up like in FoldingText, for example:
* Headline number 1
** Headline number 2 [0/2]
Here is some text before our
first unordered list:
- List item 1
- List item 2
And here is a checklist:
- [ ] Do this first
- [ ] Do this next
** Headline number 4
Any ideas? Is there a minor mode that can get this done, perhaps?
Thanks!
This doesn't do exactly what you want, but you can add indent option to your org file:
#+STARTUP: indent
In your .org file. Once you refresh your buffer, texts will be indented according to their headline levels (the right column of the example below):
* Top level headline | * Top level headline
** Second level | * Second level
*** 3rd level | * 3rd level
some text | some text
*** 3rd level | * 3rd level
more text | more text
* Another top level headline | * Another top level headline
The example is from http://orgmode.org/manual/Clean-view.html. There are more stuff about changing outline views in the manual as well.
In org-mode < 8 M-RET at the beginning of non-headline text will make that text into a headline with the same level as the one above.
Example:
* Headline
Text
If the cursor is in the beginning of 'Text' then M-RET will produce:
* Headline
* Text
In org-mode > 8 this behavior has changed. The same action will produce:
* Headline
*
Text
What would be a way to easily make text into a headline like in the < 8 versions of org-mode?
(C-* comes close but will produce a headline one level below the above:
* Headline
** Text
)
(NB: It isn't the same as this issue which I guess has been fixed. Anyways I'm not getting that in org-mode 8.2.5h-dist)
M-RETruns org-meta-returnin my old org-mode. And according to the docs that runs org-insert-heading. You could perhaps try that command or have a look at the code for it.