sublimetext3

Class “sheet container” in Sublime Text 3

北城余情 提交于 2019-12-12 04:04:41
问题 (English is not my native language, PROMT translate) Hello. I study the page Default.sublime-theme. There are lines: { "class": "sheet_container_control", "layer0.tint": [64, 64, 64], "layer0.opacity": 1.0 }, To what element the class sheet_container_control sets properties? Where I can see this element? Thanks. 回答1: The sheet_container_control is the setting for an empty window's background. See the Soda theme for descriptions of the various controls. 来源: https://stackoverflow.com/questions

How to correctly call a git submodule symlinked?

我的未来我决定 提交于 2019-12-12 03:53:48
问题 On the Sublime Text Package Control issue: Why ignore VCS-based packages accordingly to this message? I find out what causes this error. I had the package All Autocomplete triggering it. Then I gone to the folder Packages/All Autocomplete and noticed it is a git repo synlinked. Then I deleted the .git file which points to gitdir: ../.git/modules/All Autocomplete and recloned the repository, so its files are within the repo. Then the package control stopped throwing the error for the package

sublime 3 tabs and spaces do not match

徘徊边缘 提交于 2019-12-12 03:48:22
问题 I have browsed the web 3 times over but still no solution. I have a simple js file, and I want my tabs to be 4 spaces instead of 2. I changed the preferences settings to tab size to be 4, chaged syntax specific settings, everything, but still same issue. any ideas? 回答1: Click On the indentation information on the status bar, that's where it says either Tab Size: num or Spaces: num , and a context menu will be displayed. Assuming the starting position of a file using indentation with spaces

Error loading tmLanguage and tmTheme files in Sublime Text 3

不羁的心 提交于 2019-12-12 02:45:46
问题 With Sublime Text 2 I was able to style an output panel with MyOutputView.set_syntax_file("/Path_to/my.tmLanguage") MyOutputView.settings().set("color_scheme", "/Path_to/my.tmTheme") in the current beta (3047) of Sublime Text 3 two windows pop up with the following messages (they also get printed to the console): Error loading syntax file "/Path_to/my.tmLanguage": Unable to open /Path_to/my.tmLanguage and: Error loading colour scheme /Path_to/my.tmTheme: Unable to open /Path_to/my.tmTheme Is

Trouble with User Inputs in Sublime Text [duplicate]

旧街凉风 提交于 2019-12-12 02:23:20
问题 This question already has an answer here : Issue with Sublime Text 3's build system - can't get input from running program [duplicate] (1 answer) Closed 3 years ago . I'm trying to code a simple calculator using Python (2) in Sublime Text that consists of asking the user for the first number, the operation, then the second number. However, every time I try to execute the code in Sublime, I can't get past the first user input. num1 = int(raw_input("Enter your first number:")) operation = raw

keyboard shortcut for sublime text new version

拈花ヽ惹草 提交于 2019-12-11 23:23:44
问题 I have this code to create a shortcut to run current file in sublimeREPL : { "keys": ["ctrl+alt+b"], "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" } } But with the sublime's new version, it doesn't work. What's wrong? 回答1: This is the code: { "keys": ["ctrl+alt+b"], "command": "repl_open", "args": { "cmd": ["python", "-u", "-i", "$file_basename"], "cwd": "$file_path", "encoding": "utf8", "extend_env": {"PYTHONIOENCODING"

How to save project state before exiting in ST3 on Windows?

半腔热情 提交于 2019-12-11 20:22:09
问题 The SublimeRestart plugin restarts ST3 on Windows like this: subprocess.call('taskkill /im sublime_text.exe /f && cmd /C "'+ os.path.join(os.getcwd(), 'sublime_text.exe') + '"', shell=True) [Full code] The problem is, when Sublime restarts, the active project is the one from the last time Sublime was properly exited. Changing it to self.window.run_command('exit') subprocess.call(os.path.join(os.getcwd(), 'sublime_text.exe')) [Full code] causes it to hang for 20-30 seconds before exiting, and

create snippet for txt scope

纵然是瞬间 提交于 2019-12-11 20:18:32
问题 I have created sample snippet for txt extension, but it does not working. I cant able to find out the issue. I am using ST3 I am using the sample. <snippet> <content><![CDATA[ Hello, ${1:this} is a ${2:snippet}. ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>hello</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.txt</scope> </snippet> I saved the file in AppData\Roaming\Sublime Text 3\Packages

Mac Terminal link not working

。_饼干妹妹 提交于 2019-12-11 20:12:04
问题 I am trying to make a command line link for Sublime Text 3. If I run /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl Sublime Text opens like normal. I then run sudo ln "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl Restart the terminal and I get this: $ ls /usr/bin/subl /usr/bin/subl $ subl -bash: subl: command not found I also tried setting in my .profile alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" but I also

Is color scheme file cached?

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:19:20
问题 I'm using IDLE color scheme for Sublime 3, but it did not have diff syntax highglight. SO I found one that I could use it. I added it using PackageResourceViewer . After adding additional content into scheme, I noticed diff syntax working. But I did not like that insertion was colored blue and diff header was green. So I swapped colors between diff header and insertion . But it had no effect. Header was still green and insertion was still blue. It looks like file is cached somewhere, because