Cypress: How to get autocomplete in Visual Studio Code

Created on 16 Jul 2018  路  7Comments  路  Source: cypress-io/cypress

Current behavior:

I don't know to right question in this section, but I have problem with this subject.
I use VSC to write test. How to get auto complete suggestion in this IDE.

Thanks for helping

Versions

3.0.2

Most helpful comment

only you have to put this line at beggining of the document:

/// <reference types="Cypress" />

:*

All 7 comments

Hey @essivision, this is documented here: https://on.cypress.io/intelligent-code-completion

Let me know if there's anything left unanswered!

I can't understand. Visual studio code dosen't suggest cypress methods

Hi @essivision, were you able to go through the set up process for VS Code detailed here? https://on.cypress.io/IDE-integration#Set-up-in-your-Dev-Environment

This would mean setting up TypeScript support for VS Code and adding the tsconfig.json file to your project.

Edit: fixed dead link

only you have to put this line at beggining of the document:

/// <reference types="Cypress" />

:*

@jennifer-shehane The config files mentioned in the documentation do not appear to work (at least not with the latest version of VSCode).

The triple-slash directive does work, although preferably it'd be nice not to have to add that to every file.

@jennifer-shehane @santiagoholguing the config file

/// <reference types="Cypress" />

not is working for me

https://on.cypress.io/intelligent-code-completion#Set-up-in-your-Dev-Environment is now a dead link (404).

The current link for setting up autocomplete in Cypress using a tsconfig.json file is : https://docs.cypress.io/guides/tooling/intelligent-code-completion.html#Set-up-in-your-Dev-Environment-1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Francismb picture Francismb  路  3Comments

carloscheddar picture carloscheddar  路  3Comments

zbigniewkalinowski picture zbigniewkalinowski  路  3Comments

egucciar picture egucciar  路  3Comments

tahayk picture tahayk  路  3Comments