My experience with Intellisense in Visual Studio Code and Visual Studio IDE for JavaScript files has not been smooth. The Intellisense is opening, but it's only showing a history of what I have typed into the JS file instead of displaying properties or methods. You can view a screenshot of this issue here: . Interestingly, the code is functioning properly as the 'event' does have the keyCode property, even though it's not showing up in Intellisense. Strangely, other IDEs like Dreamweaver and JetBrains Rider do display the keyCode property along with other method properties.
How can I correct this problem?
Here is my JS file:
function ShowCoordinates(event) {
document.Coordinates.txtX.value = event.clientX;
document.Coordinates.txtY.value = event.clientY;
}
And here is my HTML file:
<html>
<head>
<title>4N71K</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/Main.css" />
<script src="scripts/script.js"></script>
</head>
<body onMouseMove="ShowCoordinates(event)">
<form name="Coordinates">
<label>X Value : <input type="text" name="txtX"></label>
<label>Y Value : <input type="text" name="txtY"></label>
</form>
</body>
</html>