symbol (function, global variable, etc.) list
Atom - JavaScript
Atom - TypeScript
需安裝以下兩個
- nuclide
- ide-typescript 把nuclide-outline加上 TypeScript support
VS Code - TypeScript & JavaScript
- 內建: use cmd+shift+o to get symbol list.或是以下
- vscode-code-outline
Refactor (Rename)
Atom - TypesSript only
atom-typescript, 按f2 (有時不work)
VS Code - TypeScript & JavaScript
內建 (有時不work, TypeScript work機率高點?)
IDE - find definition
Atom - TypeScript & JavaScript
以下任一種
- goto-definition
- nuclide-jump-to-definition:
cmd+mouse click. 推薦這個
- atom-ternjs: ctrl+shift+r; JavaScript only
VS Code - TypeScript & JavaScript
內建
find references/usages (跨檔案好像都不work?)
Atom - TypeScript & JavaScript
ide-typescript 對JS也有效
VS Code - TypeScript & JavaScript
內建
autocomplete (自動完成)/ Intelligence
Atom
- atom-ternjs: JavaScript only, function名稱, object property. function parameters 有時也會show(但不常)
- ide-typescript: TypeScript & JavaScript, function parameters及其type.
- atom-typescript TypeScript only, 有即時show type alias的每個property type, e.g. const bbb:test = {此時有提示property怎麼填}
VS Code - TypeScript & JavaScript
內建: function名稱, object property, function parameters, TypeScript type alias & TypeScript function parameter type