VsCode setting completion code without a carriage return linefeed
Some people are not accustomed to using the tab key completion code, I was one of them, accustomed to the completion of the carriage I decided to set up a wave, find a lot,
I could not find a more detailed, so write your own
json file has called keybindings.json is to control shortcuts, vscode can directly open
But directly in the vscode where change is unrealistic because keybindings.json set read-only.
So to find keybindings.json file with Notepad to change the address settings
Simply add the following code to the json file keybindings.json
Note: The following json string line Less, pay attention to punctuation, good closure
,{
"key": "enter",
"command": "acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
}
My computer is so is Lenovo lenovo, you can refer to sprout their own or other dell
directory address most of the address keybindings.json are in: C: \ the Users \ lenovo \ AppData \ Roaming \ Code \ the User years.
Figure:
Add the results as shown. (Note: If the content is displayed in a number of less than vscode it does not matter, as long as the code is added into the like)
After completion of the carriage to try to complement it.