Skip to content

Commit 2b7051e

Browse files
committed
clarify doc, update default, microsoft#24420
1 parent 4cb9ee7 commit 2b7051e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/editor/common/config/commonEditorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ const editorConfiguration: IConfigurationNode = {
383383
'type': 'string',
384384
'enum': ['on', 'smart', 'off'],
385385
'default': EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnEnter,
386-
'description': nls.localize('acceptSuggestionOnEnter', "Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")
386+
'description': nls.localize('acceptSuggestionOnEnter', "Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change")
387387
},
388388
'editor.acceptSuggestionOnCommitCharacter': {
389389
'type': 'boolean',

src/vs/editor/common/config/editorOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ export const EDITOR_DEFAULTS: IValidatedEditorOptions = {
19921992
formatOnType: false,
19931993
formatOnPaste: false,
19941994
suggestOnTriggerCharacters: true,
1995-
acceptSuggestionOnEnter: 'smart',
1995+
acceptSuggestionOnEnter: 'on',
19961996
acceptSuggestionOnCommitCharacter: true,
19971997
snippetSuggestions: 'inline',
19981998
wordBasedSuggestions: true,

0 commit comments

Comments
 (0)