我们喜欢TypeScript。它让我们的生活更轻松。我特别喜欢Web Essentials授权的intellisense部分。
我不知道如何正确实现这一点。
我们使用以下评论:
/** This function returns the current user */
在键入引用声明注释的.ts文件的TypeScript文件时,它会完美显示。
但是'maintainSelection'选项的评论没有显示
/** CttGrid options */
export interface CttGridOptions extends kendo.ui.GridOptions
{
/** true - Rows scrolled out of view are maintained */
maintainSelection: boolean;
}
...
var activiteitenInGrid : kendoWrappers.CttGrid = $('#werkpakketActiviteitenInGrid').kendoCttGrid
({
navigatable: true,
pageable: false,
sortable: true,
groupable: true,
resizable: true,
filterable: true,
selectable: 'multiple',
maintainSelection: true,
scrollable: {
virtual: true
},
editable: "incell",
columns: activiteitenColumns
}).data('kendoCttGrid');
现在当我将鼠标悬停在'maintainSelection'选项上时,它表示它是一个布尔值,但注释没有显示出来。因此它识别界面描述中的选项但忘记了注释。有没有办法让这些评论也出现在intellisense中?
此致 保罗
答案 0 :(得分:0)
这不是解决问题的方法,但确实有帮助。
在Visual Studio Code中,将鼠标悬停在某个功能上时,如果在Windows上按住Ctrl
或在Mac上按住⌘,将使预览窗口显示您可能跳转到的某些功能。这有效地显示了函数中的前几个注释。