Pergunta

Com o lançamento do Visual Studio 2008, a Microsoft implementou a conclusão do código e o suporte do Intellisense para o JavaScript.

Infelizmente, o suporte ao JavaScript é obscuro, na melhor das hipóteses-um dos principais aborrecimentos é que, ao fazer referência a arquivos JavaScript externos, o desenvolvedor precisa abrir e fechar os arquivos JavaScript para forçar o Visual Studio a atualizar suas definições.

Existe alguma forma de contornar isto?

Foi útil?

Solução

Sim existe:

Menu: "Editar" -> "Intellisense" -> "Atualizar JScript IntelliSense"

E o atalho do teclado:

Ctrl + Shift + J



Caso você esteja se perguntando; Sim, já eu já a resposta para minha pergunta (descobri há cinco minutos). Eu só queria compartilhar meu novo conhecimento com meus colegas desenvolvedores de JavaScript :)

Outras dicas

Visual Studio 2008 is supposed to detect the reference changes. However the staleness check and update kickoff is done in a periodic maintenance event. It takes a few seconds after the change before the "Updating Intellisense..." message is displayed in the status bar.

As roosteronacid says, Ctrl-Shift-J will force an immediate update (and will update even if nothing has changed). That only affects externally referenced files though. IntelliSense from the file you are editing should always be current.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top