TorchIDE-ZeroBrand颜色配置

来源:互联网 发布:数据驱动安全 百度云 编辑:程序博客网 时间:2024/06/07 12:30

1.在调试torch7时,在interpreter上要记得选择torch7.lua的解释器。

2.在适用zerobrand时,可通过修改user.lua文件来配置zerobrand的代码风格,debug模式下可调试,以及注意要在目录下呼叫zbstudio启动,才可保证不会找不到torch.lua的情况。

配置文件如下:

--[[--
  Use this file to specify **User** preferences.
  Review [examples](+/opt/zbstudio/cfg/user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details.
--]]--


styles = loadfile('cfg/tomorrow.lua')('TomorrowNight')


-- to have 4 spaces when TAB is used in the editor
editor.tabwidth = 2


-- to have TABs stored in the file (to allow mixing tabs and spaces)
editor.usetabs  = true


-- to disable wrapping of long lines in the editor
editor.usewrap = false


-- to force execution to continue immediately after starting debugging;
-- set to `false` to disable (the interpreter will stop on the first line or
-- when debugging starts); some interpreters may use `true` or `false`
-- by default, but can be still reconfigured with this setting.
debugger.runonstart = true


debugger.allowediting = true

0 0