Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

(Optionally) create breakpoints by double clicking on line numbers #241

Open
lzambarda opened this issue Aug 31, 2017 · 0 comments
Open

Comments

@lzambarda
Copy link

Just as any other IDE using debugging, it would be nice to be able to toggle breakpoint by simply double clicking on a line number in the default gutter.
It could be something close to:

atom.workspace.observeTextEditors (editor) ->
	gutter = editor.gutterContainer.gutterWithName('line-number')
	gutter.element.addEventListener('dblclick',(e) ->
		if e.target.className.indexOf("line-number") == 0
			# breakpoint
	)
	gutter.onDidDestroy (e) ->
		gutter.element.removeEventListener('dblclick');
@lzambarda lzambarda changed the title (Optionally) create breakpoint with double click on gutter line numbers (Optionally) create breakpoints by double clicking on line numbers Aug 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant