sublimetext

Sublime Text 2 + SublimeREPL allowing user input

时光怂恿深爱的人放手 提交于 2019-12-24 13:19:12
问题 I'd like to set up Sublime Text 2 (or 3 if recommended) to allow user input (raw_input() or input() within the files.). To clarify, I've had this work before! I want to be able to write and execute all code within one window/tab. I have installed sublimeREPL correctly but yet whenever I use either raw_input() or input() I receive the following error: EOFERROR: EOF when reading a line I've had it setup correctly and it worked perfectly before, but it's been a long time and I cannot reproduce

Why doesn’t this hotkey configuration for Sublime Text work?

删除回忆录丶 提交于 2019-12-24 10:39:42
问题 I have configured Ctrl+B to open a file in my browser, but when I press Ctrl+B when the editor is focused on some HTML page, it doesn’t work. Why not? more details : what makes me confused is that this ctrl+b works if it is combined to other command such as close, but why not openInBrowser command, so does st2 support this command, how to know whether it support this command or not? Edit 1 : you may find openInBrowser command in this link http://www.sublimetext.com/docs/commands Edit 2

SublimeLinter-javac not recognising other packages

纵然是瞬间 提交于 2019-12-24 07:07:06
问题 I have a Spring Product That I'm trying the use sublimLinter-javac with, and there are a few packages scattered around the project. The problem is that sublimeLinter-javac is not recognising these packages or the classes within. So I end up with 200+ errors per file making the listing pointless. How do I tell sublimeLinter where to look for these classes? 回答1: I am guessing your classpath is not pointing to the right place. You can find here an explanation on how to set project settings.

Sublime Text line wrap and commit messages

試著忘記壹切 提交于 2019-12-24 05:56:24
问题 I use Sublime Text (3) for my default Git commit message editor. I try to follow Git conventions using a hard limit on the number of characters per line (50 for the first line and 72 for the rest). I currently have guides set up at those intervals for visual reference, however rather than manually having to put a line return at the end of 72 characters, I would love to have ST automatically insert a line return for me. Essentially, I want to be able to write without line returns, but have

How do I prevent Sublime Text 3 from auto-indenting a line as a one off

不打扰是莪最后的温柔 提交于 2019-12-24 03:44:14
问题 When I'm editing HTML or CSS in Sublime Text 3 the lines auto-indent when I hit the [ENTER] key, which generally is very useful. On occasion I find myself wanting to paste a line of markup which is already indented, and this results in double indentation. Is there some other key combination along with the [ENTER] key that prevents the next line from auto-indenting and instead returns the curson to the very beginning of the line? Please note I don't want to turn off auto-indent on a global

Configuring SublimeLinter to ignore trailing whitespace

两盒软妹~` 提交于 2019-12-24 02:13:10
问题 When I use SublimeLinter for Sublime Text 2 with javascript it shows the red exclamation icon whenever there is a trailing whitespace, which shouldn't be a problem with javascript. I did a bit of research and found that I could add the code below to the package user settings (SublimeLinter.sublime-settings) per the error codes found here: https://github.com/jcrocholl/pep8/blob/master/pep8.py { "pep8_ignore": [ "E200", "W200", "200" ] } But for some reason the error icons still show. 回答1: You

SublimeLinter cppcheck linter executable not found

浪子不回头ぞ 提交于 2019-12-24 01:48:40
问题 I have intalled SublimeLinter and sublimelinter-cppcheck packages to my Sublime Text 3. The problem is that sublime text is saying SublimeLinter: WARNING: cppcheck deactivated, cannot locate 'cppcheck' . i figured out that cppcheck cannot find linter executable, so I decided that I will add path to linter to my system $PATH property. But the thing is that I cannot find linter executable on my system. At first I thought that it's not installed but that I realised that it has to install with

Python: Correcting the local time in a timestamp

喜欢而已 提交于 2019-12-24 01:18:59
问题 Using https://gist.github.com/jordan-brough/4007432 I got a timestamp to work in sublime but the time is off by 7 hours. How can I fix this? Do I need to set the timezone? import sublime, sublime_plugin from datetime import datetime class TimestampCommand(sublime_plugin.TextCommand): def run(self, edit): stamp = datetime.utcnow().strftime("%m/%d/%y %H:%M %p - ") for r in self.view.sel(): if r.empty(): self.view.insert (edit, r.a, stamp) else: self.view.replace(edit, r, stamp) 回答1: Try

Disable sublime text file-reload dialog

佐手、 提交于 2019-12-23 21:25:12
问题 Is there a way to disable sublime text file reload dialog from popping up when the content of the current file has changed due to some modifications(modification + save from another text editor). sublime text file reload dialog is this: Thank you for your suggestions. 回答1: As far as I know, Sublime will prompt only if the file has unsaved changes by default. If you get a prompt even if the file hasn't been modified, you could set always_prompt_for_file_reload to false in your user settings. /

Running Intel Fortran on Sublime Text 3

隐身守侯 提交于 2019-12-23 19:30:41
问题 Sublime Text 3 has a package that links the text editor to Gfortran and it runs without any problems. I would like to know how can I add Intel Fortran as a custom build to Sublime Text 3? From what I understand I need to go on build systems and create a new file with code similar to the one below (this is an example for gfortran). { "cmd": "gfortran ${file} -o ${file_base_name}", "selector": "source.modern-fortran, source.fixedform-fortran", } How could I do this for Intel Fortran? Extra: