Open3

VSCode

ピン留めされたアイテム
hayato94087hayato94087

コマンドメモ

読み方

キー 読み方
command
option
シフト
上矢印のキー
矢印のキー

⌘K ⌘W

開いてるファイルを全部閉じる
https://hoshino-wp.com/vscode-close-all-files-shortcut/

⌥⇧F

ソースを自動整形
https://kakechimaru.com/vscode_alignment/

⌘0 ⌘←

⌘0でエクスプローラーがフォーカスされ、⌘←で表示されているフォルダーを閉じる
https://bobbyhadz.com/blog/collapse-all-folders-in-explorer-in-vscode

⌘P

ファイルを検索
https://tech.kurojica.com/archives/47199/

⌘⇧P

コマンドパレットを表示する
https://1-notes.com/visual-studio-code-shortcut-key-show-commands/

⌥↑ or ⌥↓

ファイルで選択されている行を上下に移動させる
https://bobbyhadz.com/blog/vscode-move-line-up-or-down

hayato94087hayato94087

Pretty TypeScript Errors

type User = {
  name: string;
  friends: User[];

  posts: {
    title: string;
    comments:{
      text:string;
    }[]
  };
}

export type GetUser = (id:number) => User;
import { type GetUser} from "./types";

export const getUser: GetUser = () => {
  return {
    name: "John",
    friends: [],

    posts: {
      title: "Hello World", 
      comments: [{body:"hi"}]
    }
  }
}