Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have a block cursor in sublime text 3?

Not sure it is most appropriate to post it here. I don't find it on either Sublime's official/unofficial documents or the web.

Anyone has a solution to have a vim/terminal type block cursor in sublime text?

Any suggestion is welcome. Thank you in advance.

like image 920
kevin Avatar asked Jul 07 '15 08:07

kevin


People also ask

How do I change the cursor type in Sublime Text?

You can use the Shift + 0 combination too. The zero must be from numeric keypad. Option + Command + o worked for me.

How can I get flashing cursor in Sublime Text?

Right click -> Keyboard Settings, and then Speed -> Cursor blink rate.

How do I make my cursor smaller in Sublime Text?

You can change the cursor size globally from System Preferences > Accessibility > Display, but then you should be seeing the same size in all applications.


2 Answers

You can try out the package that @user2365566 mentioned. I personally didn't like the way that cursor looked.

Here is an alternative, just add following into your Preferences.sublime-settings:

{
    "caret_extra_width": 5,
    "caret_style": "solid",
    "wide_caret": true
}

You can change the caret_extra_width number to whatever you like, based on how wide you want the cursor to be.

like image 57
Saad Avatar answered Sep 20 '22 16:09

Saad


This is now possible as of Build 3190 (from 19 February 2019). You can enable this with

"block_caret": true

in your user settings. Your theme may not have a style for this, so if the default color of the caret isn't to your liking, it can be changed in your theme by adding

<key>blockCaret</key>
<string>#FFCC00</string>

into your theme's settings section. It will look something like this:

block_caret example image

like image 30
Mason Stewart Avatar answered Sep 18 '22 16:09

Mason Stewart