0

I don't get suggestions for "element(by." element locators in visual studio code. Im using protractor. I have changed the settings file also.

Settings.js

{
"editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": false
},

// 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
"editor.acceptSuggestionOnEnter": "on",

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

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

// Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
"editor.tabCompletion": "on",

// Controls whether sorting favours words that appear close to the cursor
"editor.suggest.localityBonus": true,

// Controls how suggestions are pre-selected when showing the suggest list
"editor.suggestSelection": "recentlyUsed",

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

// Enable parameter hints
"editor.parameterHints.enabled": true,
}

Please help fix this intellisense issuer

  • Voting for closing because this is related to VS Code configuration - IMO it should placed in Stack Overflow – João Farias Jun 7 at 5:50
  • It's related to the Testing and he is asking about locator suggestion's are not showing in Visual Studio as like Eclipse, so this could be best fit here. Which version are you using? – Bharat Mane Jun 7 at 8:48
  • are you using javascript or typescript? – Jithin Mathew Jul 17 at 5:31
-1

Please watch this video, It has the detailed info to get auto suggestion in vs code for protractor:

https://www.youtube.com/watch?v=ywn5nBm-1vU

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.