sublimetext

How to run R Code in R Markdown file in SublimeREPL?

廉价感情. 提交于 2019-12-22 06:58:08
问题 I would like to test code parts in my R Markdown code without leaving Sublime Text. For instance: Multiplying the grades with two solves the unreliability problem: ```{r} chisq.test(2*grades) ``` In the above example, I would like to select the line that has the code "chisq.test(2*grades)", press my key combination, and have it ran in SublimeREPL as R code. However, when I try this, I get the following error from SublimeREPL: Cannot find REPL for 'HTML.markdown.rmarkdown' When I change the

set auto complete on sublime text 3 for custom html elements

耗尽温柔 提交于 2019-12-22 06:30:20
问题 Good day, how can I set auto complete on sublime text 3 for custom html elements, like for example if I type: dog then press tab it will become <dog></dog> .. thanks for your answer. 回答1: You can create a custom .sublime-completions file for this. Create a new file with JSON syntax in Sublime, using the following contents (of course customized to your needs): { "scope": "text.html - source, punctuation.definition.tag.begin", "completions": [ { "trigger": "foo", "contents": "<foo>$0</foo>" },

How to run Python 3 in Sublime 2 REPL Mac

二次信任 提交于 2019-12-22 05:53:57
问题 My question is the following, I have sublime 2 and sublime repl plugin installed all working fine, the only thing i need is to change the version of python that is running on the sublimerepl built in console. What I mean is, I have python 2.7.5 (which is pre installed with maveriks) running fine in sublime (via sublimerepl), and I have installed via the installer from python.org, python 3.3.3 , that I need to use, I want to run this version of python on the sublimerepl console but I don't

Is it possible to set environment variables in a .sublime-project file?

六月ゝ 毕业季﹏ 提交于 2019-12-22 05:29:33
问题 I'd like some environment variables to be set in Sublime Text when I open the project. This is for the most part just for some plugins that require them to be set. I believe that there is a feature request for this, but I was still wondering if this isn't possible in some way or another. http://sublimetext.userecho.com/topic/103881-sublime-project-should-also-be-able-to-set-environment-variable/ I'm asking this specifically in relation with the GoSublime plugin, for which I'd like to change

How to copy text together with the line numbers using Sublime Text

半腔热情 提交于 2019-12-22 04:35:09
问题 I would like to copy text but with the line numbers in front. How to do it? I would like to paste that text after that, with the line numbers in front. 回答1: Install Copy With Line Numbers Reloaded Select the text you want to copy Run Edit: Copy With Line Numbers from the Command Palette Paste @ your target document & your code will now have line numbers 来源: https://stackoverflow.com/questions/36992564/how-to-copy-text-together-with-the-line-numbers-using-sublime-text

How to make Zen Coding support JavaScript files in Sublime Text2?

牧云@^-^@ 提交于 2019-12-21 21:40:22
问题 RT~ Sublime Text2 is one of my favorite editors. The only problem to me is that its Zen Coding plugin only support css and html files. But there are many situations that to use Zen Coding in JavaScript or other files. Just like, use html template in js or concat strings in js. And I checked its pakage file in ~/.config/sublime-text-2/Packages/ZenCoding. But I don't kown how to configure it to support more files. 回答1: Open up Packages/ZenCoding/sublimezenplugin.py Right after `########

Sublime Text 3 LaTeXTools plugin won't compile on Ubuntu

让人想犯罪 __ 提交于 2019-12-21 21:09:01
问题 I've been a fan of the LaTeXTools plugin for Sublime Text for a while. However, the author recently updated the plugin, and it will no longer build my LaTeX documents. I'm wondering if anyone else has had this problem and knows how to fix it? Here's the full console output that I'm getting: [Compiling /home/tingley/Dropbox/testtex.tex] TraditionalBuilder: Invoking latexmk... COULD NOT COMPILE! Attempted command:latexmk -cd -e $pdflatex = 'pdflatex -interaction=nonstopmode -synctex=1 %S %O' -f

How can a Sublime Text build system access the contents of a buffer, not a file?

做~自己de王妃 提交于 2019-12-21 18:04:12
问题 Let's say I open a new buffer in Sublime Text 3 (ST3); how can I access the contents of that buffer from my build system? i.e. Let's say I have a build system that will run a file thorough node —in that case I can simply use $file , but as far as I can tell, there is no build system variable for the current buffer's contents. Is there any way to pull the contents of the currently selected, unsaved buffer into a build process? 回答1: To do this you will need to write a custom plugin to perform

How do you execute a lua file in sublime text 3?

不问归期 提交于 2019-12-21 12:38:14
问题 How do you execute a lua file in sublime text 3? I tried opening the console and typing build <filename>.lua . I also looked through the menu's for a build and run. Supposedly saving a file or hitting F7 is supposed to execute lua scripts, but that did not work either. I expected 'helo world' to print in the console upon save and all it said was the file was written. contents of helo.lua: print('helo world'); 回答1: You can manually create a build configuration for Lua. However, I suggest that

Sublime Text 3: AutoComplete from anywhere in whole project?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 07:36:18
问题 I am wondering if there's any way to get smart autocompletion from anywhere in a Sublime project? I found cool package called All Autocomplete which indexes open tabs for autocomplete... but I would love if it searched all files in project. I can't seem to get SublimeCodeIntel to do this... maybe because SublimeCodeIntel is giving me errors in Sublime's console panel? EDIT: Actually, it seems to autocomplete sometimes. Other times I just get the mentioned SublimeCodeIntel eval errors in