2016-08-08 6 views
15

मैं विजुअल स्टूडियो कोड में मार्कडाउन फ़ाइलों के लिए शब्द पूर्ण नहीं करना चाहता, मैं इसे कैसे अक्षम कर सकता हूं? आदर्श रूप से, केवल मार्कडाउन के लिए, लेकिन सबसे बुरे मामले में, यहां तक ​​कि एक वैश्विक स्विच भी अच्छा होगा। वी.एस. संहिता मेंमार्कडाउन के लिए वीएस कोड में IntelliSense को कैसे अक्षम करें?

उत्तर

22

IntelliSense सुझाव globally or per each workspace विन्यस्त और किया जा सकता है 1.9 per file-type (language), editor.quickSuggestions, editor.acceptSuggestionOnEnter और editor.suggestOnTriggerCharacterssettings का उपयोग कर के रूप में।

// Controls if quick suggestions should show up or not while typing 
"editor.quickSuggestions": true, 

फ़ाइल प्रकार सेटिंग्स

ओपन Command Palette (1.9 जारी होने के बाद, वरीय) एफ 1 दबाकर और Configure language specific settings आदेश चला द्वारा, तो Markdown का चयन करें। एक नया संपादक फलक खुल जाएगा जहां उन सेटिंग्स जगह कर सकते हैं:

// Place your settings in this file to overwrite the default settings 
{ 
    "[markdown]": { 
    "editor.quickSuggestions": false 
    } 
} 

इस तरह आप markdown फ़ाइलों को केवल के लिए IntelliSense को निष्क्रिय कर देंगे।

वैश्विक

ओपन Command Paletteएफ 1, प्रकार open user settings दबाकर और Enter दबाएँ द्वारा । एक नया संपादक फलक खुल जाएगा जहां उन सेटिंग्स जगह कर सकते हैं:

// Place your settings in this file to overwrite the default settings 
{ 
    "editor.quickSuggestions": false 
} 

कार्यस्थान

Workspace settings उन्हें अपने अन्य वी.एस. कोड परियोजनाओं के लिए लागू किए बिना कस्टम सेटिंग्स निर्धारित करने की अनुमति देता है। वर्कस्पेस सेटिंग्स फ़ाइल आपके प्रोजेक्ट में .vscode फ़ोल्डर के अंतर्गत स्थित है।

Command Paletteएफ 1, प्रकार open workspace settings दबाकर और Enter दबाएँ द्वारा ओपन। एक नया संपादक फलक खुल जाएगा जब आप ऊपर सूचीबद्ध के रूप में एक ही स्निप कर सकते हैं।

मुझे नहीं पता कि वर्तमान में चयनित फ़ाइल प्रकारों के साथ सेटिंग्स को जोड़ना संभव है या नहीं।

अन्य विकल्पों को कॉन्फ़िगर करने

editor.quickSuggestions कई अन्य विकल्प के अलावा आगे अनुकूलित करने के लिए बदला जा सकता है कि कैसे IntelliSense काम करता है:

// Controls if quick suggestions should show up while typing 
"editor.quickSuggestions": false, 

// Controls if suggestions should be accepted with "Enter" - in addition to "Tab". Helps to avoid ambiguity between inserting new lines and accepting suggestions. 
"editor.acceptSuggestionOnEnter": false, 

// Controls the delay in ms after which quick suggestions will show up. 
"editor.quickSuggestionsDelay": 10, 

// Enable word based suggestions 
"editor.wordBasedSuggestions": false, 

// Controls if the editor should automatically close brackets after opening them 
"editor.autoClosingBrackets": false, 

// Controls if suggestions should automatically show up when typing trigger characters 
"editor.suggestOnTriggerCharacters": false 
+0

उदासी, सादा पाठ '.txt' एक भाषा समझा नहीं है, स्पष्ट रूप से के लिए ... –

+0

स्वत: पूर्ण बंद करने के लिए के लिए IntelliSense को निष्क्रिय करने के लिए देख उन लोगों के लिए:

सभी एक साथ, यहाँ मैं क्या उपयोग है '.txt' फ़ाइलों जैसे मैं था, यह मेरे लिए काम करता था: ' "[plaintext]": { "editor.quickSuggestions": झूठी } ' – MrDustpan

4

क्या @JakubS कहा के अलावा, दो और कर रहे हैं सेटिंग्स में मदद मिलेगी IntelliSense को खत्म:

// Controls if the editor should automatically close brackets after opening them 
"editor.autoClosingBrackets": false, 

// Controls if suggestions should automatically show up when typing trigger characters 
"editor.suggestOnTriggerCharacters": false, 

editor.autoClosingBrackets विकल्प विजुअल स्टूडियो कोड को स्वचालित रूप से समापन कोष्ठक, ब्रैकेट, ब्रेस, सिंगल कोट, डबल कोट इत्यादि डालने से रोक देगा

editor.suggestOnTriggerCharacters विकल्प ऑटो-पूर्ण विंडो को एक डॉलर चिह्न या डॉट टाइप करते समय दिखाई देने से रोक देगा ।

// Controls if quick suggestions should show up while typing 
"editor.quickSuggestions": false, 

// Controls if suggestions should be accepted with "Enter" - in addition to "Tab". Helps to avoid ambiguity between inserting new lines and accepting suggestions. 
"editor.acceptSuggestionOnEnter": false, 

// Controls the delay in ms after which quick suggestions will show up. 
"editor.quickSuggestionsDelay": 10, 

// Enable word based suggestions 
"editor.wordBasedSuggestions": false, 

// Controls if the editor should automatically close brackets after opening them 
"editor.autoClosingBrackets": false, 

// Controls if suggestions should automatically show up when typing trigger characters 
"editor.suggestOnTriggerCharacters": false 
+0

मुझे लगता है कि ट्रिगर वर्ण भाषा-विशिष्ट हो सकते हैं। डॉट निश्चित रूप से पायथन में एक ट्रिगर चरित्र है और संभवतः सभी भाषाओं में नहीं। लेकिन जब मैं डॉलर का चिह्न टाइप करता हूं (पायथन में), कुछ भी नहीं होता है, भले ही मेरे पास "editor.suggestOnTriggerCharacters" है: सत्य'। –

संबंधित मुद्दे