美文网首页iOS开发-Flutter
flutter vscode快捷键

flutter vscode快捷键

作者: bugbiu | 来源:发表于2020-05-28 13:51 被阅读0次

    mbp电脑使用:

    自定义代码块

    Code->首选项->用户片段
    Example:
    "Print to console": {
     "prefix": "log", // 代码块快捷健
     "body": [
        "console.log('$1');", // 参数使用$加数字
        "${2:name}"
     ],
     "description": "Log output to console"
    }
    

    推荐两个快速生成代码块的vscode插件

    Flutter Widget Snippets
    Awesome Flutter Snippets
    

    中文翻译包

    Chinese (Simplified) Language Pack
    

    快速生成代码

    stless 
    stful
    

    快捷生成组件包裹

    cmd + .
    

    注释当前选定行

    cmd + /
    

    跳到当前行首或尾

    cmd + ← 或 →
    

    删除当前行

    cmd + shift + K 
    光标切到行尾后cmd + delete
    

    当前行上/下移动

     option + ↑ 或 ↓
    

    向下插入一行

    cmd + enter
    

    回到上一个光标位置

    control + - 
    

    格式化代码

    option + shift + f 
    

    关闭当前窗口(mac 上软件基本都适用)

    cmd + w
    

    相关文章

      网友评论

        本文标题:flutter vscode快捷键

        本文链接:https://www.haomeiwen.com/subject/yqaoahtx.html