Sublime will move cursor to the first non space character on the line:
Original cursor position:
function test() {
var a = 42|
}
After press Home:
function test() {
|var a = 42
}
Desired cursor position after the Home key pressed:
function test() {
| var a = 42
}
In notepad++ I fixed this easily by remapping from HOME to DISPLAY_HOME (I might not remember the exact literal name)
Please help (if that is possible at all)
hardbol
does the trick:
Preferences-> Key Bindings - User
{ "keys": ["home"], "command": "move_to", "args": {"to": "hardbol"} }
只需按两次“主页”按钮即可。
Try this:
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }
I found it in a forum. http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5830
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.