4 ms·
(Sorry, this is my first time trying to do a formatted comment here.) What I like to do is comments like: /* * Collates * [ * { * id: 4
by hackerbrother 5y ago
(Sorry, this is my first time trying to do a formatted comment here.)
What I like to do is comments like:
/*
* Collates
* [
* {
* id: 4
* dept: 'oncology',
* name: 'Joe S.'
* }
* .
* .
* .
* ]
*
* into
*
* {
* 4: { // id
* 'Joe. S': { // name
* dept: oncology
* }
* .
* .
* .
* }
*/
( Then insert horrible one-liner that does the transformation. )
- deleted 5y ago[deleted]
- Jtsummers 5y agoTwo spaces in front of a line will create a code block: /* * Collates * [ ... Removes all the unneeded vertical space created by inserting the extra newlines and makes the entire thing more readable. Put two spaces in front of each line that will be part of the code block and then any extra needed spaces. Some text editors can format text in this manner automatically for you.