sublimetext3

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 to create Sublime Text 3 build system which reads shebang

允我心安 提交于 2019-12-21 20:39:09
问题 How can I create a build system in Sublime Text 3 where "cmd" is replaced with a shebang if it exists? More specifically, is there a way to alter the Python build system to use the version of Python specified in the shebang, and use a default if no shebang is present? 回答1: Sublime build systems have an option named target which specifies a WindowCommand that is to be invoked to perform the build. By default this is the internal exec command. You can create your own command that would examine

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

Sublime Text change 'Goto Line…' shortcut

血红的双手。 提交于 2019-12-21 17:03:23
问题 (This question is specifically for the Mac, but you may enlighten Windows users if you want!) What is the command for 'Goto Line...' to change the shortcut as it's down for 'Goto Definition...' like below: [ { "keys": ["cmd+D"], "command": "goto_definition" } ] 回答1: You can find out what command is being executed by opening the console ( Ctrl ` ) and entering sublime.log_commands(True) Keeping the console open, select Goto -> Goto Line... or hit the key combo Ctrl G , and the following

Configure Sublime Text build system for Scala?

限于喜欢 提交于 2019-12-21 16:54:52
问题 I'm trying to configure a build system for Scala with SublimeText, but I am having some difficulty. I have tried both of the following: { "shell_cmd": "scala", "working_dir": "${project_path:${folder}}", "selector": "source.scala" } { "cmd": ["/path/to/bin/scala", "$file_name"], "working_dir": "${project_path:${folder}}", "selector": "source.scala", "shell": true } Both of these attempts produce the same failed output - it seems to start up the interactive Scala shell rather than running my

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

Sublime Text 3: AutoComplete from anywhere in whole project?

别等时光非礼了梦想. 提交于 2019-12-21 07:36:06
问题 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

Sublime Text 3 Hides scrollbars

蹲街弑〆低调 提交于 2019-12-21 07:12:14
问题 I would prefer to always see the scroll-bars in Sublime Text 3. The current behavior is for them to remain hidden until you start scrolling. Is there a setting I can change to make it behave this way? Is it part of the theme? Right now I am making the scroll-bars larger by modifying my theme (Cyanide)... I have // in Cyanide.sublime-theme [ { "class": "scroll_bar_control", "attributes": ["horizontal"], "content_margin": [3, 4] //makes horiz scrollbar taller }, { "class": "scroll_bar_control",

React.js files syntax in sublime text 3

和自甴很熟 提交于 2019-12-21 07:05:29
问题 i am using sublime text 3 as my code editor,i have written a basic hello world example in React.but the coloring is improper on the code ,i have tried installing Babel plugin but even after that also the coloring doesn't seem to work ,as you can see the image below 回答1: Just installing it isn't enough, you have to also tell SublimeText to use it. Either do a) Ctrl - Shift - P , type "Babel" and select Set Syntax: Javascript(Babel) or b) Go to the menu and do View->Syntax->Open all with