sublimetext3

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 to remove output buffering when running Python in Sublime Text 3

放肆的年华 提交于 2019-12-24 05:05:47
问题 How can I remove the output buffering from Sublime Text 3 when I build a Python 3 script? I would like real-time output. I am using Sublime Text 3 with the Anaconda plugin, Python 3.6 and Linux Mint 18. When I run a simple script using control-b: print('hello') I get an instant output in a separate window called 'Build output'. When I use a script with a repeated output, such as: from time import sleep count = 0 print('starting') while True: print('{} hello'.format(count)) count += 1 sleep(0

Sublime Text 3 - Snippet doesn't fire on tab, only on CSS file

寵の児 提交于 2019-12-24 04:41:29
问题 I have a snippet that does not fire on the tab trigger. Here's my code... <snippet> <content><![CDATA[ .contentBox ul{list-style: none; padding: 0;} .contentBox ul li{padding-left: 2.5em; text-indent: -0.7em; margin-bottom: 4px;} .contentBox ul li:before{content: "${1:•} "; color: #${2:Bullet color};} ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>xcv</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <!--

Sass support for sublime text 3

拜拜、爱过 提交于 2019-12-24 04:27:09
问题 Is there a way to make autocomplete work for scss in the same way it works for css? For example I type backg and then tab and it gives me background:; but not in scss files... I have installed all packages to support scss... but there is only syntax highlighting that is working. 回答1: You can install Emmet (formerly Zen Coding), it is an extremely powerful tool to do css (and scss), example : I type bi and press tab and it gives me : background-image: url(|); (with the | your cursor). If you

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

ST3 swap priority of tab function within a snippet (nested snippets)

孤街浪徒 提交于 2019-12-24 01:46:08
问题 Find myself frequently invoking a snippet within a snippet, but of course when I go to expend the nested snippet, the tab key moves me to either the next entry of the first snippet or the end of the first snippet (at which point, I have to replace the cursor at the end of the tab-trigger expression for the 2nd snippet and hit tab, at which point the 2nd snippet is expanded). eg. given snippet [ content A ${1:First point in A} and ${2: Second point in A} ] with tab-trigger tabtrigA and snippet

Editing Docker container FS using Atom/Sublime-Text?

两盒软妹~` 提交于 2019-12-23 22:07:04
问题 I'm running OSX and Docker with the help of boot2docker. From my understanding boot2docker is a lightweight linux distro that is running the docker containers. I have some Ubuntu containers that I use to run and test projects that should specifically run well on Linux. However every small code change from my host text editor of choice, requires me to re-build image and re-run the container. Run the app and confirm that the change I made didn't break something. Is there a way for me to open a

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:

How do you configure MinGW with Sublime Text 3?

為{幸葍}努か 提交于 2019-12-23 17:13:09
问题 I recently installed MinGW and I've been trying to get it to work with Sublime Text 3 to get it to open cmd when when I compile the script, however nothing works. When I go to Tools > Build System > New Build System and save this script, I keep on getting an error: '"C:...." is not recognized as an internal or external command operable program or batch file.' For some reason, the executable is never created. How do you get this to work? I have gcc in C:\MinGW\bin { "cmd": ["gcc", "${file}", "