Vote count: 0
Is there a way so when moving the cursor over the x:10,
, it would display the JSdoc of Point.prototype.x
. The goal is to have the same JSdoc than when I mouse over pt.x
.
If it is not possible with the current version of Visual Studio Code, would it be possible to do so by writing my own extension? If so, what part of the vscode namespace API is related with this?
class Point {
/** The x property */
x:number;
/** The y property */
y:number;
}
/** Prints a point.
* @param pt The point
*/
function printPoint(pt:Point){
console.log(pt.x,pt.y);
}
printPoint(<Point>{
x:10,
y:10,
});
let pt = new Point();
pt.x;
asked 21 secs ago
Visual Studio Code: Display JSdoc for attribute
Aucun commentaire:
Enregistrer un commentaire