前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【基础系列】H5开发工具WebStorm专题

【基础系列】H5开发工具WebStorm专题

作者头像
江中散人_Jun
发布2023-10-16 12:24:32
1500
发布2023-10-16 12:24:32
举报
文章被收录于专栏:云原生布道专栏

1 WebStorm安装配置

1.1 浏览器插件安装

Chrome插件

如果Chrome插件无法添加,直接重启一遍chrome即可

1.2 Node.js配置

搭建Node.js开发IDE环境WebStrom5多图

http://blog.csdn.net/youyudehexie/article/details/8542135

学习老外用webstorm开发nodejs的技巧--代码提示DefinitelyTyped

http://my.oschina.net/klausgao/blog/380351

WebStorm中Node.js项目配置教程(1)——创建项目

https://www.evget.com/article/2014/1/20/20431.html

WebStorm中Node.js项目配置教程(2)——项目设置

https://www.evget.com/article/2014/1/21/20438.html

1.3 Bowers配置

1.3.1 Windows环境下安装Bower

Windows环境下的NodeJS+NPM+Bower安装配置

http://jingyan.baidu.com/article/2d5afd69e243cc85a2e28efa.html

1.3.2 在WebStorm中配置Bower

1.4 使用bower组件

(Good)UsingBower in WebStorm

http://blog.jetbrains.com/webstorm/2014/04/using-bower-in-webstorm/

1.4.1 生成bower.json

        To start using Bower in your project, first make sure it is installed globally on your machine. Bower depends on Node.js and can be installed using npm.

    Run npm

        install -g bower in WebStorm built-in Terminal.

        Alternatively, go to Preferences | Node.js and npm, and click Add. In the popup window, search for Bower, select Options, enter-g(to install the package globally),and then click Install.

        After the package is installed, Bower will appear in the list of your installed node packages. Project dependencies are specified in the bower.json file in the project root.

        If you would like to create a new bower.json file, you can run bower init command in the built-interminal to generate it.

        Alternatively, you can manually create a new file named bower.json(which should at least has a project name defined as{ “name”: “my-project” }).

1.4.2 往bower.json中添加插件包

内容格式如下:

{

    "name":"HJNodeJSPro2",

   "description": "A starter project for AngularJS",

   "version": "0.0.0",

   "license": "MIT",

   "private": true,

   "dependencies": {

       "angular": "1.4.x",

       "angular-mocks": "1.4.x",

        "jquery":"~2.1.1",

       "bootstrap": "~3.1.1",

       "angular-route": "1.4.x",

       "angular-resource": "1.4.x",

       "angular-animate": "1.4.x"

    }

}

1.4.3 下载插件包

        If you are working with a project that already has a bower.json file in it, then you would probably like to install all the dependencies specified in it. In the terminal run the command: bower install. The required packages will be downloaded to bower_components folder (by default).

1.5 Git配置

webstorm + Git配置与使用

http://www.unjeep.com/q/485866624.htm

1.6 AngularJS配置

AngularJS最理想开发工具WebStorm

http://blog.fens.me/angularjs-webstorm-ide/

1.7 为工程引用插件包

        选择左上角web storm->preference,然后选择JavaScript->Libraries,勾选需要引入的插件包,然后点击“Manage Scopes”,选中当前Projects,点击“ok”即可。

2 工具使用

2.1 常用技巧

2.1.1 代码字符编码修改为gbk

        默认使用utf-8编码,若要修改,右击,选择“file encoding”

2.1.2 代码格式化快捷键Option+Command+l

centOS下webstorm格式化代码的快捷键Ctrl+Shift+l

windows下webstorm格式化代码的快键键Ctrl+Alt+l

mac下webstorm格式化代码的快捷键Option+Command+l

3 参考链接

关于webstorm(phpstorm)设置了编码格式之后还是乱码的问题

http://www.cnblogs.com/jieshendada/p/4864088.html

webstorm格式化代码及常用快捷键

http://yijiebuyi.com/blog/8c94ccab84a48c5702158aac974f7841.html

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-10-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1 WebStorm安装配置
    • 1.1 浏览器插件安装
      • 1.2 Node.js配置
        • 1.3 Bowers配置
          • 1.3.1 Windows环境下安装Bower
          • 1.3.2 在WebStorm中配置Bower
        • 1.4 使用bower组件
          • 1.4.1 生成bower.json
          • 1.4.2 往bower.json中添加插件包
          • 1.4.3 下载插件包
        • 1.5 Git配置
          • 1.6 AngularJS配置
            • 1.7 为工程引用插件包
            • 2 工具使用
              • 2.1 常用技巧
                • 2.1.1 代码字符编码修改为gbk
                • 2.1.2 代码格式化快捷键Option+Command+l
            • 3 参考链接
            领券
            问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档