I just started using Atom, i am trying to make a macro,
if text is marked and i hit the shortcut(i have chosen) then the text will be surrounded by
/* Marked text */
And if it all are still marked and i hit the shortcut again, then it removes the comment marks.
Of course if nothing is marked, then /* ‘cursor here’ */ would be put in instead.
So in essence a commenting on/off button is what i am trying to make.
Hope someone can help