Sublime Forum

Bug at end of every line in the code

#1

while writing code when we reach end of line it will have some auto suggestions for last word.
but when we write correct new word at the end of line and press enter to go to new line, it is changing our word into some other word in the auto suggestion.
This happens with most editors “this is the issue at every line”.

Coders who written code for sublime text should consider this case:
‘enter’ key is pressed not only for replacing the word into auto suggested word,
It is used for going to new line also.

editor should help reduce the mistakes not to introduce mistake at every line(particularly at end of line in this case). I have attached the image indicating this issue(in which i want to go to next line after

the word “books”).
when i checked forum previously this question was asked by someone, but the answer for him was to disable autocomplete. but autocomplete is the top feature of sublime. it should help to write code faster, but not to introduce new bug. please look it into it.

0 Likes

#2

You may want to investigate the auto_complete_commit_on_tab setting, as outlined below. It defaults to being turned off so that Sublime behaves like other software, but turning it on changes how completions work so that you select an item by pressing tab instead of pressing enter.

    // By default, auto complete will commit the current completion on enter.
    // This setting can be used to make it complete on tab instead.
    // Completing on tab is generally a superior option, as it removes
    // ambiguity between committing the completion and inserting a newline.
    "auto_complete_commit_on_tab": false,
0 Likes

#3

Thanks for your quicker reply. I copied this setting in preferences>settings tab, that really solved the issue. This was the only problem I was currently facing with sublime as beginner to coding. now, after this solution sublime is my favorite editor again.

1 Like