Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn’t already filed: https://github.com/issues?utf8=✓&q=is%%3Aissue+user%%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Multiple cursors on click don’t seem to work now – this is regardless of whether “Multi Cursor on Click” is checked or not in the Editor panel. Disabling it in the settings does add the key to config.cson
, but explicitly setting it to true in the config file does not work either.
Steps to Reproduce
- Open a file
- Hold
Ctrl
and click multiple locations in the file
Expected behavior:
Multiple cursors to be active at each location that is clicked.
Actual behavior:
The cursor moves to the last location that is clicked.
Reproduces how often:
100%%
Versions
Atom : 1.48.0
Electron: 5.0.13
Chrome : 73.0.3683.121
Node : 12.0.0
apm 2.5.0
npm 6.14.5
node 10.20.1 ia32
atom 1.48.0
python 2.7.10
git 2.18.0.windows.1
visual studio 2015
Windows 10
Additional Information
I know this can arise due to an interaction with hyperclick, but that should not be the case here as I have my hyperclick configured to use another key combination. Also I did check that it occurs in safe mode.
@HugoMcPhee posted and deleted a comment linking to #20804 which does indeed seem to offer a fix for this😄
As a workaround I added
under👍
core
in myconfig.cson
which resolves it for now, so thanks for that!This was reported in #20803 when 1.48.0 was in beta but I’m not sure if anyone at @atom even saw it.
Updating the config file with multiCursorOnClick: true did not work for me
At first, it was a bit misleading, but the key is to add the workaround under
core
. So in the end, I set it like that and it worked:QA on Atom is getting rougher and rougher, this was reported nearly three weeks ago during the beta. The last release broke several prominent plugins and this release has broken one of the editors’ key features.
The fix above works on all platforms, just ensure you find the appropriate place to insert the config lines (you probably have core already, you may have editor).
If you add
multiCursorOnClick: true
underThis WILL NOT WORK. You need to add it under:
Which, for me, required adding a new
editor:
section undercore:
This worked for me, but make sure you add it right under
core:
if you have other lines put them aftermultiCursorOnClick: true
You can also open the console (Ctrl + Shift + I) and run
atom.config.set('core.editor.multiCursorOnClick', true);
I noticed something weird in my config.cson. Its beginning looked like this after an update:
The “*” property included the same property again and the whole tree of configurations with it. So i deleted this nested branch, then added
multiCursorOnClick: true
to “*”.core.editor, as multiple people mentioned here, and it worksAtom 1.48.0, windows 10 build 1909