Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Disable Blinking Cursor #4277

Closed
ankurkanoria opened this issue Mar 19, 2017 · 6 comments
Closed

Option to Disable Blinking Cursor #4277

ankurkanoria opened this issue Mar 19, 2017 · 6 comments

Comments

@ankurkanoria
Copy link

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.

@ccordoba12 ccordoba12 modified the milestone: wishlist Mar 21, 2017
@ccordoba12
Copy link
Member

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.

@ankurkanoria
Copy link
Author

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

@gerardp
Copy link

gerardp commented Jul 15, 2017

@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.

@jnsebgosselin
Copy link
Member

caret_blinking

@jnsebgosselin
Copy link
Member

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

@Mohassann
Copy link

Actually, this solved my problem!
https://www.youtube.com/watch?v=J6O5RrN1jd8&t=9s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants