楼主: 匿名
41183 113

[Stata] 神级编辑器(Sublime Text 3)在Stata 13/14中的应用   [推广有奖]

31
yhw1234 学生认证  发表于 2015-10-24 20:34:34 |只看作者 |坛友微信交流群
问题.png
我安装Pywin32的时候总是出现图片中的错误,怎么办?
我的电脑是64位的,刚开始运行你的Sublime_Text_Build_3095_x64下的出现,老出现上面的错误。后来改为
Sublime_Text_Build_3095_x86 使用你的32位版本,完全正确了,但是又出现楼下的问题,麻烦你给指点一下。
已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
xddlovejiao1314 + 50 + 30 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 50  论坛币 + 30  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

使用道具

32
yhw1234 学生认证  发表于 2015-10-24 21:24:59 |只看作者 |坛友微信交流群
你好,麻烦你把"3.自定义设置"部分的解释能够在说详细一点吗?
“3.自定义设置
*检查Stata设置:
Do-fileEditor > Edit > Preferences> Advanced > Edit do-files opened fromWindows instead of executing them”

我的stata14Do-fileEditor > Edit > Preferences>中没有> Advanced
1.png 2.png

难道是选择下图的黄色标记部分吗?
3.jpg
另外,我的StataEditor也安装成功了。
我的.jpg
stata14的快捷方式的设定也按照要求搞好了。
5.jpg

接下来,你又说打开一份do文档,如ch11.do,是在Sublime Text中打开吗?我在Sublime Text打开了,但是不能再stata14中运行?

(文件>新建文件>保存,在文件名中直接键入ch11.do即可)这句话能不能也说详细一点?是在Sublime Text中?第一次接触Sublime Text,多有麻烦!


已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
xddlovejiao1314 + 100 + 100 + 2 + 2 + 2 精彩帖子

总评分: 经验 + 100  论坛币 + 100  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

使用道具

33
yhw1234 学生认证  发表于 2015-10-24 22:11:04 |只看作者 |坛友微信交流群
啥折腾一整,原来上边的设定完,已经可以使用了。原来里边有快捷方式设定,修改一下就可以了。我喜欢F9(和MATLAB一样).
[
        { "keys": ["f9"],        "command": "stata_execute",        "args": {"Mode": "do"},        "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
        { "keys": ["ctrl+r"], "command": "stata_execute", "args": {"Mode": "run"}, "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
        { "keys": ["alt+l"], "command": "stata_local", "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
        { "keys": ["f1"], "command": "stata_help_internal", "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
        { "keys": ["ctrl+f1"], "command": "stata_help_external", "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
        { "keys": ["alt+shift+u"], "command": "stata_load", "context":
                [
                        { "key": "selector", "operator": "equal", "operand": "source.stata" }
                ]
        },
                // Disable expansion ' -> ''
        { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                        { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
                        { "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true },
                        { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        // Disable expansion ' -> '...' when selected
        { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        // Disable moving to right when in middle of ''
        { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                        { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
                        { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
                        { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        // Disable deleting both '' when in middle and pressing backspace
        { "keys": ["backspace"], "command": "left_delete", "args": {}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                        { "key": "preceding_text", "operator": "regex_contains", "operand": "'$", "match_all": true },
                        { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
                        { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
                        { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        // Stata `' quotes
        { "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`$0'"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                        { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        { "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}'"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        },
        { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
                [
                        { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
                        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
                        { "key": "preceding_text", "operator": "regex_contains", "operand": "`$", "match_all": true },
                        { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
                        { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
                        { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true },
                        { "key": "selector", "operator": "equal", "operand": "source.stata", "match_all": true }
                ]
        }
]
已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
xddlovejiao1314 + 100 + 50 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 100  论坛币 + 50  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

使用道具

34
yhw1234 学生认证  发表于 2015-10-24 22:36:21 |只看作者 |坛友微信交流群
最好用的就是他有代码提示,不知道使用的哪个快捷键可以将代码自动补全?

使用道具

35
yhw1234 学生认证  发表于 2015-10-24 22:43:23 |只看作者 |坛友微信交流群
能不能把你
2.Stata不同版本的编码格式快速批量转换
3.自动补全(括号、暂元等)
两个功能的使用方法介绍一下?另外安装AllAutocomplete时提示不可用,是不是字母打错了?
8.jpg
已有 1 人评分经验 论坛币 收起 理由
xddlovejiao1314 + 10 + 3 鼓励积极发帖讨论

总评分: 经验 + 10  论坛币 + 3   查看全部评分

使用道具

36
yhw1234 学生认证  发表于 2015-10-24 22:52:43 |只看作者 |坛友微信交流群
我找到下载地址了https://github.com/alienhard/SublimeAllAutocomplete
但是下载之后解压是两个文件README.md和all_views_completions.py,怎么使用?看到官方的话:

You can also install this package manually by entering the Packages directory of Sublime Text 2/3 and issuing on a terminal:

git clone https://github.com/alienhard/SublimeAllAutocomplete
issuing on a terminal是什么意思?
已有 1 人评分经验 论坛币 收起 理由
xddlovejiao1314 + 10 + 3 鼓励积极发帖讨论

总评分: 经验 + 10  论坛币 + 3   查看全部评分

使用道具

37
yhw1234 学生认证  发表于 2015-10-24 22:59:07 |只看作者 |坛友微信交流群
初次接触这样的软件,在楼主的帮助下,向你学到不少东西,好贴,太给力了。
已有 1 人评分经验 论坛币 收起 理由
xddlovejiao1314 + 10 + 3 鼓励积极发帖讨论

总评分: 经验 + 10  论坛币 + 3   查看全部评分

使用道具

38
iron1992 发表于 2015-11-17 21:33:18 |只看作者 |坛友微信交流群
谢谢分享
已有 1 人评分经验 论坛币 收起 理由
xddlovejiao1314 + 10 + 3 鼓励积极发帖讨论

总评分: 经验 + 10  论坛币 + 3   查看全部评分

使用道具

39
Kit-Baum 发表于 2015-11-26 10:16:03 来自手机 |只看作者 |坛友微信交流群
powerful method,thanks.
已有 1 人评分经验 论坛币 收起 理由
xddlovejiao1314 + 10 + 3 鼓励积极发帖讨论

总评分: 经验 + 10  论坛币 + 3   查看全部评分

使用道具

40
tylerma3223 学生认证  发表于 2015-12-16 08:43:16 |只看作者 |坛友微信交流群
非常感谢楼主,为什么安装 Pywin32会死掉,试验了好几天,都是这样。一等两三个小时SublimeText还是死在那里,不得不关掉了。 第二天再试,还一样。第三天,第四天,,,,,,,都是死掉。

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 20:09