sublimetext3

“Unexpected trailing character” in sublime when trying to edit preferences

泪湿孤枕 提交于 2019-12-09 12:16:18
问题 I'm trying to change my sublime theme/colour scheme and i get 'unexpected trailing characters' When I try to save the /User/Preferences.sublime-settings with this config { "theme": "Afterglow-green.sublime-theme", "color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme" } { "tabs_small": true } I can't work out why I would be getting that message? 回答1: Your settings files in Sublime (all of them) need to be valid JSON. Yours should be as follows: { "theme": "Afterglow-green.sublime

Sublime text word_separator CamelCase

ⅰ亾dé卋堺 提交于 2019-12-09 07:35:09
问题 The sublime text word_separator is: "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", I would also like case change in CamelCase to be considered change. Is there a setting/way to do this? (Eg in FooBar ctrl+bck_space should delete only Bar). 回答1: In the event anyone is still looking at this... In your default keybindings you'll find: { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} }, { "keys": ["ctrl+right"], "command": "move", "args": {"by":

print function does not show output on sublime text 3 console

倾然丶 夕夏残阳落幕 提交于 2019-12-09 06:12:57
问题 I have started off with Python today and stuck with a weird problem. I am using Python 3.5.1 and Sublime text 3 and have written a basic hello world program. print('Hello World') Saved this file with the name python1.py and pressed Ctrl+B to execute it but the only thing that shows up on the console is [Finished in XYZs] which means that the program sucessfully executes but no output shown. NOTE: I am using Windows 8(If that's important) and Python is installed properly and I can run my

How to show result of python script in a console when running from ST editor?

送分小仙女□ 提交于 2019-12-09 06:05:36
问题 I'm new to Sublime Text so am unfamiliar with its internals so far. From what I could tell the problem could be something related to this. I have a python script var = raw_input("Enter something: ") print "You entered ", var which asks for input, waits for it, then prints it out in windows console prompt. How do I make ST3 upon "building" to show the results in a console window? 回答1: It's really simple just issue a command to start a new cmd.exe . start cmd /K python main.py See here for more

SublimeREPL Unable to Find R

こ雲淡風輕ζ 提交于 2019-12-09 04:44:27
问题 Okay, this is driving my crazy. I had set this up before, deleted Sublime Text, and now I can't remember what the right configuration was. Very simple: I'm running R through SublimeREPL and need to point the REPL to where R is installed. I followed the directions at http://sublimerepl.readthedocs.org/en/latest/, which say to go into the user-defined REPL settings and add this: { ... "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"} ... } where the path points to the right

How to highlight calls to object methods and user-created functions? (SublimeText, python)

匆匆过客 提交于 2019-12-08 19:26:27
I tried using both Python3/PythonImproved .tmLanguage syntaxes, but neither does this for some reason. Are those actually supposed to be the same color as variables in most editors? Here's a screenshot of some random function: And here's how I want it to look like: To sum it up I just want everything called with parentheses like function() or an object.method() to be highlighted. I'm the author of Python Improved. Sublime's default Monokai theme lacks the ability to highlight many of the scopes in PI (as well as a bunch of other languages - it's quite bare-bones). One of my other projects, the

SublimeText3 build on the server over SSH

浪尽此生 提交于 2019-12-08 11:54:36
问题 Let's say I'm on local macOS and need to edit/run something on remote Linux server using SSH. I would like to hit Build on ST3 so that it executes Makefile on the server. Am I being to imaginative or that's possible? Which tools might help to make the dream a reality? It seems something similar was asked before https://superuser.com/questions/1214210/sublime-text-terminal-control?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa 来源: https://stackoverflow.com/questions

How does Omnisharp use wildcards in its config files?

梦想的初衷 提交于 2019-12-08 11:44:47
问题 Background This relates to an older stackoverflow question. I was hoping to ask for more details but haven't got the Reputation to write comments yet. Circumstances are the same: I'm adding codecheck warnings that I want to ignore, by editing the "IgnoredCodeIssues" section of Omnisharp's config.json file. The question What wildcard/regexp characters work here and how? Is it perhaps a known standard with its own docs somewhere that I can read? Example If I enter an issue warning verbatim it

Sublime Text 3 snippet not working in plain text file with no extension

一曲冷凌霜 提交于 2019-12-08 09:46:17
问题 I have the following snippet that I would like to work in a plain text file, specifically before the file has been saved with an extension or having set a syntax. <snippet> <content><![CDATA[ /* yay this is your generic test snippet */ ]]></content> <tabTrigger>generic</tabTrigger> <scope>text.plain</scope> <description>Generic any scope snippet</description> </snippet> However it doesn't work when I type generic in a new file. I have already made this change to sublime user settings: "auto

Sublime text - (Sidebar/Tab/Go to anything) Korean/Chinese/Japanese broken

ぃ、小莉子 提交于 2019-12-08 08:47:11
问题 I am using sublime text 3 in Windows 10. As you can see it from the above captures, Korean/Chinese/Japanese characters are broken in 'Go to Anything' text input, sidebar, and tab title. Does anyone know how to solve this problem? I think that similar languages like Japanese, Chinese characters have the same problem. Font setting in Preferences - Settings - Users does not solve this problem. ps. This is not a problem of encoding of the text 'file'. It may come from the unappropriate Windows