Everlaw / nbts

NetBeans TypeScript editor plugin
282 stars 46 forks source link

Line Breakpoints (not debugging) #122

Open Rycochet opened 6 years ago

Rycochet commented 6 years ago

This is related to #9 slightly, but not meant as a duplicate.

When coding in JS I often add a Line Breakpoint (Click just to the left of the the line number) as it gives an easy way to go back to a point you want to return to (by clicking the red line in the scrollbar).

I don't care about breakpoints in the debugging sense (sourcemaps and multiple browsers do enough), purely being able to mark specific lines I go back to in long functions and files where the Navigator panel isn't helpful.

Chris2011 commented 6 years ago

Breakpoints are not made for this. What you want are bookmarks and this is also implemented. Right click in front of the line -> bookmarks -> toogle bookmars.

Chris2011 commented 6 years ago

I think you can add a shortcut for this by your own.

Rycochet commented 6 years ago

@Chris2011 Never use them simply because they're not obvious - not least because they don't show up as an obvious colour in the scrollbar (it's almost indistinguishable from the "other instances of the selected name"). At least the red breakpoint looks the same colour as an error - which shouldn't be in there anyway ;-)

Chris2011 commented 6 years ago

Yeah but this is not what breakpoints are made for, breakpoints are for debugging, everything else are bookmarks. And the breakpoints in TS, will come, if we will have a debugger, which is working.