question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add comment/uncomment bindings

See original GitHub issue

This might be more broadly addressed with custom mappings/bindings, but adding comment/uncomment bindings would be super useful. Somehing along the lines of tpope’s commentary which uses gc as the binding for commenting.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
llinfengcommented, Sep 3, 2019

@CrashLaker You shall find a relevant discussion in #17.

1reaction
llinfengcommented, Jul 25, 2019

Update on using Ctrl + / for commenting

As mentioned by DreamFlasher’s comment in this stack overflow post, the slash symbol (/) should be interpreted as the slash symbol from the Numpad!!!

On my Windows machine, I added the following mapping to tune the normal Ctrl + / key-press into the real thing: Ctrl + Numpad-Slash.

; I used a program called AutoHotKey
; Section that declares the `ahk_group JupyterLab`: this shall capture all cases where I may be using Jupyter
SetTitleMatchMode, 2
GroupAdd , JupyterLab       , JupyterLab - Mozilla Firefox 
GroupAdd , JupyterLab       , JupyterLab - Vimperator
GroupAdd , JupyterLab       , JupyterLab - Google Chrome 
GroupAdd , JupyterLab       , JupyterLab ahk_exe chrome.exe
return


; The simple mapping, along with other things that emulate Vim's fundamental actions.
#IfWinActive ahk_group JupyterLab
    ^/:: send ^{NumpadDiv}
    ^w::Send ^+{Left}{BS}
    ^h::Send {BS}
return
Read more comments on GitHub >

github_iconTop Results From Across the Web

What's a quick way to comment/uncomment lines in Vim?
Hit Ctrl + q in GVIM or Ctrl + v in VIM, then go down to select first character on the lines to...
Read more >
Comment/Uncomment - Unofficial Jupyter Notebook Extensions
Adds a new configurable hotkey binding to toggle comments on/off. Options¶. comment_uncomment_keybinding: keybinding for toggling comments (default: Alt-c).
Read more >
Xcode 8 beta 4 - Comment/Uncomment… - Apple Developer
Preferences > Key Bindings shows it under "Editor Menu for Source Code", but there doesn't appear to be any way to turn it...
Read more >
Forums - Key bindings to comment line(s) - PythonAnywhere
Key bindings to comment line(s) · In SublimeText2 you can press ctrl+/, and all lines, which are fully or partially selected become commented...
Read more >
set key for 'comment-or-uncomment-region in python-mode
Major modes have their own keymaps, and python-mode probably overrides the binding from the global one. You can fix this by adding a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found