
默认快捷键为
ctrl+alt+i 添加/移除文件路径列表
ctrl+alt+o 显示文件列表
测试ctrl+alt+o无法生效,可能和摸个快捷键冲突。可以在该插件key Bindings-User选项中添加下列命令来自定义快捷键,
注:添加文件路径列表格式为
1.打开目录:目录路径
2.打开文件:文件路径
3.打开网址:http或者www.网址(即正确的网址路径格式)
注: 默认编辑器底部状态是不显示文件大小和最后一次修改时间(即ctrl+s)保存时间。
只显示光标所在的行数和列数以及文件格式等。
可以在该插件的Settings-User添加如下命令开启
效果如下
该插件可以为配置快捷键来打开浏览器,该插件key Bindings-User选项中添加下列命令来自定义快捷键。
注:使用vue的时候该插件无法格式化。
安装 FTPSync打开工具列 Preferences → Package Control 输入 install Package 按 ENTER
再输入 FTPSync 按 ENTER 安装
设置、执行 FTPSync :
[1] 建立一个文件夹,举例的我就建立在桌面上:
建立一个文件夹
建立一个文件夹
2、打开sublime,菜单中打开 Project - Add Folder to Project
Project - Add Folder to Project
3、选择您刚刚建立的文件夹
选择您刚刚建立的文件夹
4、在左侧出现的文件夹上右键选择FTPSync ->Setup FTPSync in this folder,如果出现不能选择的情况,请重新启动sublime,即可选择:
Setup FTPSync in this folder
5、这时候会出现一个ftpsync.settings,然后将该文件设置正确,即可实现功能了,可以对你刚加入的 Project 上按右键 FTPSync → Download 下载 FTP上的程序文件
ftpsync.settings
6、下载:
FTPSync → Download
参考配置文件:
{
// HELP / INFO moved to bottom
// Remove "//" to uncomment settings directive
"default": {
"host": "ftp.example.com", //这里需要设置
"username": "your_login", // or null for anonymous login 这里需要设置
"password": "your_password", //这里需要设置
"path": "/",
"upload_on_save": true // set *false* if you do not want to upload on save!
// "port": 21,
// "tls": false,
// "timeout": 30, // [seconds]
// "passive": true,
// "download_on_open": false,
// "overwrite_newer_prevention": true,
// "default_folder_permissions": "755",
// "default_upload_permissions": null, // null = no action taken
// "time_offset": 0, // [seconds]
// "always_sync_local_permissions": true,
// Value "auto" = use UTF-8 if availible (FEAT: UTF8), otherwise use local
// "encoding": "auto",
// Trade small performance impact for more stable and secure transfer (old file is intact until the download is finished)
// "use_tempfile": true,
// Regular expression, recommending using \b in general and /.../ for folders to avoid matching substrings
// "ignore": "",
// Can be used for increase of performance or to allow build scripts to finish
// "upload_delay": 0, // [seconds]
// Only if the server has MFMT extension installed
// "set_remote_lastmodified": true,
// Chmod value for files newly downloaded by FTPSync
// "auto" = same as on server
// null = no action taken
// "0644" = example for direct value
// "default_local_permissions": "auto",
// List of lists with pathnames and filenames to folders to be watched for change in between delay (upload_delay)
// example: after_save_watch: [ [ "code/assets/css", "*.css" ], [ "code/assets/", "*.jpg, *.png, *.gif" ] ]
// used only in conjunction with upload_on_save and upload_delay **
// For more info see https://github.com/NoxArt/SublimeText2-FTPSync/wiki/Why-and-how-to-use-afterwatch
// "after_save_watch": []
}
// ------ INFO ----------------------------------------------------------------------
// Index page
// --- https://github.com/NoxArt/SublimeText2-FTPSync/
// For settings description see:
// --- https://github.com/NoxArt/SublimeText2-FTPSync/wiki/All-settings
// For more info see:
// --- https://github.com/NoxArt/SublimeText2-FTPSync/wiki/_pages
// Want to ask? Report a bug?
// --- Hit: https://github.com/NoxArt/SublimeText2-FTPSync/issues/new
// ** Commas **
// Don't forget about commas ->each entry needs a comma at the end of line EXCEPT the last (uncommented) entry
// For precise info see http://www.json.org
// Also try http://jsonlint.com
// ** Comments **
// The "//" are so called "comments", all text after it is ignored,
// they are used for notes or deactivating an entry
// Non-basic settings are deactivated and default options specified in the global settings file,
// that is $packages$/FTPSync/ftpsync.sublime-settings (where $packages$ is a path where Sublime
// keeps packages in your Operating System) accessible via Preferences >Package Settings >FTPSync
// Use Settings - User to override the global defaults
// More info about Sublime Text 2 settings on http://www.sublimetext.com/docs/2/settings.html
}
1、首先要下载微信官方的微信Web开发者工具。打开微信公众平台,找到右下方的小程序模块,点击「开发」按钮2、点击顶部导航栏的「工具」按钮,在新页面的左侧栏中找到「下载」。可以看到,开发工具提供 Windows 32 位、Windows 64 位和 Mac 三个版本。可根据实际情况,选择适合自己电脑的开发工具。
3、安装后,就可以直接启动开发者工具。如果是首次启动开发者工具,需要使用开发者的微信号扫码登录。登陆后,点击「添加项目」按钮,填写 AppID(如果没有,则点击无 AppID)和项目名称。接着,在项目目录中点击「选择」,新建一个文件夹作为新的项目目录。然后再次点击「添加项目」,就可以新建出一个微信小程序项目了。
4、微信开发者工具共分成「编辑」、「调试」和「项目」三个部分。
编辑:编辑和修改小程序的代码。
调试:显示小程序代码错误和警告,便于调试代码错误。
项目:用于查看小程序的属性、修改小程序配置,以及提交小程序代码至微信服务器。
开发工具还提供简单的模拟器(页面左侧),开发者可以使用模拟器在电脑上模拟用户点击及使用,提供后台情况模拟、多媒体播放器调试、缓存数据处理等功能。
5、懂技术的程序员到这一步就可以自己开发了。而不懂编程的小白,可以登录微信小程序制作平台「即速应用」官方网站进行小程序的制作。里面有大量的小程序模板,根据自己的需求选择一个模板进行制作即可。
6、制作完成后,点击「生成」按钮。然后选择「小程序打包」,下载小程序的标准代码包。
7、回到在微信Web开发工具中,在「项目目录」这一栏选择下载好的代码包,打开后就可以看到小程序的预览效果了。
8、在「项目」页面中,开发者可以查看小程序的基本属性,也可以进行真机预览调试,或向微信服务器提交一个新版本的小程序代码。服务器收到代码后,管理员就可以通过公众平台,将新版本提交审核了。
以上就是微信小程序开发工具的具体使用方法。磨刀不误砍材工,只有认真了解过微信小程序开发工具如何使用,才能才微信小程序推出的关键时期抓住机会,尽快进入市场,拿下小程序的第一波红利。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)