帖子
帖子
用户
博客
课程
darkwind 发表于 2017-6-6 16:45
预览功能,在代码更新后怎么刷新啊,每次改了代码都要重新开预览的界面

目前可以 点击预览窗口的 devtool 部分,ctrl/cmd + r 刷新.
等会儿下发的 2.1.3 版本,将支持自动刷新了
kenzone 发表于 2017-6-6 13:34
请问支持自定义代码snippet么? 怎么设置?

ctrl/cmd + shift + p,输入 snip,选择 Application: Open Your Snippts.格式参考下面的引用示例.

我们会尽快把相关自定义代码片段,快捷键的指令,放到顶部菜单下.大家的自定义需求,还是挺多的.

# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
#   'Console log':
#     'prefix': 'log'
#     'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/usi ... ustomization/#_cson
'.source.js':
  'console.log2':
    'prefix': 'log'
    'body': 'console.log(${1:"crash"});$2'
  'console.lo2g2':
    'prefix': 'log'
    'body': 'console.log(${1:"crash"});$2'

20
帖子
1
勋章
1167
Y币
技术支持-Altair 发表于 2017-6-6 17:08
ctrl/cmd + shift + p,输入 snip,选择 Application: Open Your Snippts.格式参考下面的引用示例.

我们会 ...

感谢回复 !

Atom 默认是 文件 -> snippet 可以打开的, 貌似给你们改了, 应该是出于精简的考虑吧
求助 apicloud studio2 自定义apploader如何真机呢  没有找到输入 从哪里可以输入ip和端口
小恐龙vs大恐龙 发表于 2017-6-6 18:08
求助 apicloud studio2 自定义apploader如何真机呢  没有找到输入 从哪里可以输入ip和端口 ...

右键项目根目录 --> WIFI 调试IP 和端口,然后在  自定义Apploadre ,单击白色小球,输入即可
2
帖子
0
勋章
11
Y币
我用官方的版本.别的不学了
25
帖子
0
勋章
108
Y币
没有自动换行功能?
25
帖子
0
勋章
108
Y币
使用require报错在预览时报错,在手机上没问题,studio的第一版也没问题
nanjunyu 发表于 2017-6-7 10:41
没有自动换行功能?

代码的换行,不能随便加吧?
nanjunyu 发表于 2017-6-7 10:42
使用require报错在预览时报错,在手机上没问题,studio的第一版也没问题

api.require? 如果是 api.require,那电脑上预览时,应该都会报错.除非 你有 api.require的代码,预览时 没有执行,比如 写在里 apiready 里的东西,预览时不会触发.

这个问题,我们会优化下,尝试实现些基础的方法,能尽量让一些使用 api 方法的html页面,也能在电脑上预览调试
您需要登录后才可以回帖 登录

本版积分规则