sublimetext3

Set working directory to location of active script in SublimeREPL

一个人想着一个人 提交于 2019-12-07 09:53:16
问题 I use Sublime Text 3 with SublimeREPL for my commands in both R and Python. Whenever SublimeREPL is booted up, it has the present working directory set to the Sublime Text installation directory. This occurs on both Windows and Mac OSX. Often, I need to run code from R or Python which opens a file that is located in the same folder as the R or py file that I'm running. Under normal circumstances (i.e. not using Sublime Text), this works fine, as the R or Python interpreter knows to look in

Where to put .tmLanguage in sublime text 3?

↘锁芯ラ 提交于 2019-12-07 09:36:55
问题 I'm having trouble with Ruby syntax highlighting in combination with RegExp. Someone suggested that I update my Ruby.tmLanguage file with some additional code. Problem is, I can't locate this file on my computer. Inside sublime_text_3/Packages I only see .sublime-package files, which I can't properly open with sublime text; it only shows numbers. Do I have to create this file myself, and if so, where? Or does this work differently in sublime text 3 (as opposed to 2, which was probably the

Red lines coming up after strings in SublimeREPL (python)?

邮差的信 提交于 2019-12-07 03:13:20
In writing a simple python application, I'm printing out some strings to the console in SublimeREPL (for python), using Python 2.7.8 and Sublime 3, 64 bit for Windows 8.1. However, I'm getting some very annoying red lines after each of the strings that I'm printing. Does someone know why this is happening? I would appreciate any help. Thanks! The apostrophe ' character is causing Sublime's syntax highlighting engine to think that you're beginning a single-quoted string. Since ending a line with a string "open" is an error, it is being highlighted with the reddish invalid.illegal scope in your

Sublime Text 2 / Sublime Text 3 bring back unsaved files on osx

人盡茶涼 提交于 2019-12-06 18:36:41
问题 In sublime I know even if you don't save the changes in a file later one you can start from where you left off. I opened a new tab in sublime and closed the application before I save my file. Does sublime save a temp file somewhere in the computer (I am using MAC OSx) 回答1: Sublime Text 2 stores the files in ~/Library/Application Support/Sublime Text 2/Settings , in the .sublime_session files that are located there. The contents of those files are a large JSON blob that contains the individual

How can I convert a Sublime Text syntax highlighting file to a textmate syntax for visual studio?

耗尽温柔 提交于 2019-12-06 16:34:54
I am trying to start using visual studio for my code editing instead of Sublime Text 3. In sublime text 3, I have a custom syntax file for a language I work in. I would like to be able to carry the syntax highlighting over to visual studio. I am not quite sure how I could do that without starting from scratch. Any ideas? In response to Matt, here is an update: I have been trying to get it to work, but I have had no luck. It does say that textmate languages are supported: https://docs.microsoft.com/en-us/visualstudio/ide/adding-visual-studio-editor-support-for-other-languages?view=vs-2017 It

Can Sublime SFTP remember an SSH key passphrase?

旧巷老猫 提交于 2019-12-06 15:54:51
When I use Sublime SFTP to connect to a server via the SFTP protocol, it always prompts for my SSH key passphrase the first time I connect during a given editing session. Since I work with many sites and use strong passwords, memorizing these passphrases isn't an option. So I have to open a customer's reference document to copy/paste their passphrase each time. Is there any way to let the plugin remember a passphrase, or to specify it in the .json config file? Or would that be dangerous for some reason? My machine is well secured, so I'm not overly concerned about keeping the passphrase key in

How can I toggle XML line comment in Sublime Text 3

会有一股神秘感。 提交于 2019-12-06 14:29:39
问题 I am using Sublime Text 3. I have encountered a problem. I don't know how to toggle XML line comment. I know there is a Toggle Comment function in Sublime Text 3 and I tried. However, the result is not the same as what I envisioned. For example, I want to toggle comment the following XML code: <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8<

Automatically select pasted text in Sublime Text 3

天涯浪子 提交于 2019-12-06 13:50:02
问题 Is there any way, plugin, macro or something to make Sublime Text 3 automatically select the text that was just pasted? I need to copy and paste some JSON data, but the pasted text is never in line with the surrounding text. Paste and indent -feature does not work properly for this. What does work is the reindent feature, but it requires me to select a block of text and pressing a hotkey. So after pasting I would benefit for having the just pasted block of text being automatically selected,

JS correcting syntax in Sublime Text 3

孤街醉人 提交于 2019-12-06 11:03:37
问题 Im new to to Sublime Text 3. I used to use Netbeans which had a great syntax correcting system for JavaScript and PHP. So far, Sublime has great features. Its fast and beautiful, but it does not have syntax correcting errors when I create JS files. Is it a possibility to get this working? I read a bit on "SublimeLinter" but when I installed it, it seems to not work correctly. Can anyone help? 回答1: Have you try to install SublimeLinter for Sublime Text 3? (I don't think this package is

Sublime Text 3: Set Environment Variable for plugin_host

走远了吗. 提交于 2019-12-06 11:01:42
Sublime Text 3 on OSX. I am writing a plugin that loads up a particularly poorly-written 3rd-party Python module that relies on the value of an Environment Variable to function properly (in particular, DYLD_LIBRARY_PATH ). Of course, I could set this globally, but I would love for the Sublime Plugin to be self-contained. I notice that plugins run in a child process of Sublime itself - is there any way to tell Sublime to provide the plugin_host process with a particular Environment Variable before it spins it off? If not, does anyone know of another way to solve this problem? For performance