Changing cursor style of atom editor

2019-05-16 11:10发布

问题:

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