Spyder: Option to Disable Blinking Cursor

Created on 19 Mar 2017  路  5Comments  路  Source: spyder-ide/spyder

Spyder does not respect system keyboard settings, and there seems to be no way to disable the blinking cursor in the editor, integrated consoles, etc. All modern IDEs provide an option to disable cursor blinking; the flashing cursor is known to irritate a lot of developers. (www.jurta.org/en/prog/noblink).

How can one tweak the Spyder settings, configuration files to make this happen?

I'm using: Linux (Ubuntu 16.04), Anaconda 4.3. This issue was also noted by a few developer friends on Windows.

Help wanted Editor Ui Ux-usability Enhancement

Most helpful comment

Meanwhile, you can set this option with a quick hack by adding the line :

MAIN_APP.setCursorFlashTime(0)

after

from spyder.utils.qthelpers import qapplication, MENU_SEPARATOR
MAIN_APP = qapplication()

in file mainwindow.py in the Spyder installation folder. For me (Win7 64bit), this file is located in:

C:\Python36\Lib\site-packages\spyder\app

All 5 comments

the flashing cursor is known to irritate a lot of developers

First time I've heard this complaint in seven years working in Spyder, so (I'm sorry to say it but) we're not going to implement this.

You're welcome to send us a pull request to implement this though.

@ccordoba12 , can you suggest me where to start if I want to implement this?

@ccordoba12
Can you reconsider your decision?
All IDE's has this option

Thanks

Pycharm
captura de pantalla 2017-07-15 a las 9 40 17

Visual Studio Code
captura de pantalla 2017-07-15 a las 9 43 41

Vim

" Disable all blinking:
:set guicursor+=a:blinkon0

Emacs
(setq visible-cursor nil)

Sublime text
"caret_style": "solid"

XCode
defaults write -g NSTextInsertionPointBlinkPeriod -int 100000

Etc.

caret_blinking

Meanwhile, you can set this option with a quick hack by adding the line :

MAIN_APP.setCursorFlashTime(0)

after

from spyder.utils.qthelpers import qapplication, MENU_SEPARATOR
MAIN_APP = qapplication()

in file mainwindow.py in the Spyder installation folder. For me (Win7 64bit), this file is located in:

C:\Python36\Lib\site-packages\spyder\app

Was this page helpful?
0 / 5 - 0 ratings