TorchIDE-ZeroBrand颜色配置

本文介绍了在使用TorchIDE进行torch7调试时如何选择正确的解释器,并详细说明了如何通过修改user.lua文件配置ZeroBrand的代码风格,确保在debug模式下能正常工作。此外,强调了在指定目录下使用zbstudio启动以避免找不到torch.lua的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值