Changing cursor style of atom editor

让人想犯罪 __ 提交于 2019-12-10 09:45:50

问题


Hello is there a way to change the caret style of atom just like in sublime text 3? The way sublime text 3 did it was this way in the settings JSON "caret_style": "phase"

Is there a way to do something just like this in atom editor?


回答1:


Edit .atom/styles.less (or ~/.atom/stylesheet.css), add/update the following transition to atom-text-editor .cursor:

atom-text-editor .cursor {
  transition:opacity 0.5s linear;
}

If you want to update cursor speed, you can get cursor-blink-interval package and update the following in your .atom/config.cson :

'*':
  'cursor-blink-interval':
    cursorBlinkInterval: 1200

See also block-cursor package



来源:https://stackoverflow.com/questions/42468937/changing-cursor-style-of-atom-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!