VS2017自动补全(Auto-Completion)快捷键修改及输入问题咨询
Hey there, I’ve fought through these exact VS2017 input annoyances before—let’s get them sorted out for you step by step!
1. Switch Auto-Completion Confirm Key from TAB to Enter
To make Enter confirm the highlighted completion item directly (no need to press Down first), follow these steps:
- Open VS2017, go to the top menu bar and click
Tools→Options - In the Options window, expand
Text Editor→ select your target language (e.g.,C/C++,C#; pickAll Languagesif you want this change across all supported languages) - Expand
IntelliSenseand chooseGeneral - Look for the
Commit completion withsetting: change it from the defaultTab onlytoEnter and Tab - Make sure the
Preselect most relevant itemoption is checked—this ensures the best-matching completion is automatically highlighted when you type a prefix, so you can just hit Enter to confirm right away
2. Fix Missing Auto-Added Parentheses for Functions
This one’s usually a simple settings tweak too:
- Head back to
Tools→Options→Text Editor→ your target language →IntelliSense→General - Double-check that both
Auto list membersandParameter informationare enabled (checked) - For language-specific fixes (like C++), navigate to
Text Editor→C/C++→Advanced, then ensureDisable IntelliSenseis set toNo - If the issue persists, try refreshing the IntelliSense cache: go to
Edit→IntelliSense→Refresh Local Cache, then restart VS2017 to apply changes
Give these steps a shot—they should make your coding flow in VS2017 feel way more natural!
内容的提问来源于stack exchange,提问作者Engelard
相关产品推荐
相关产品推荐

