sublimetext

Limit File Search Scope in Sublime Text 2

你离开我真会死。 提交于 2019-12-29 10:08:43
问题 In Sublime Text, I often use Cmd + P / Ctrl + P to search and jump between files. Often, it would pick up temporary or cached files like .scssc or things in the /tmp folder. Is there a way that I can limit what is shown in the search result? 回答1: Add and edit this in your ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings file. // These files will still show up in the side bar, but won't be included in // Goto Anything or Find in Files "binary_file

How to make ruler always be shown in Sublime text 2?

孤街浪徒 提交于 2019-12-29 10:05:34
问题 I use Sublime Text 2 and want a Ruler to be shown in every file with specific line-height. But I have to show it manually in every file. 回答1: Edit the "rulers" value in the default settings to contain the column number you want the ruler to be displayed on, and it will persist. 回答2: Go to Sublime Text > Preferences > Settings - User Add a "rulers" setting with the lines you want for the ruler: // Adds a single vertical ruler at column 80 "rulers": [80], If you want multiple rulers, separate

Karate Framework - Why Javascript function returns an array with NaN values?

拟墨画扇 提交于 2019-12-29 09:27:23
问题 I wrote javascript function in Karate scenario and the function takes in current date in argument and gets date, year, month and adds them in a array. But for some unknown reason I get NaN values. Please see below karate steps that I have been using. * def dateArr2 = [] * def dateParse = """ function(myOrderDate) { dateArr2.add(myOrderDate); // this is for test purpose var today = new Date(myOrderDate); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today

Sublime Text autocomplete plugin for C++?

早过忘川 提交于 2019-12-29 05:26:13
问题 I'm trying to have the autocomplete feature on Sublime Text by using c++ libraries. I use very often EIGEN for example, but there is no autocomplete for functions inside this library. How can I somehow export the library to let sublime know about all the functions and methods I could use within this library? I would appreciate any helpful answer. 回答1: I use the package EasyClangComplete to auto-complete C++ code. And it works fine. You can install this package using Package Control . It is

Sublime Text 2 - Default Document Type

限于喜欢 提交于 2019-12-29 04:48:39
问题 Is there a way to set a default document type when saving a NEW FILE? I created several new files and I want to have a default value of .txt when saving a NEW FILE. 回答1: This plugin does it: https://github.com/spadgos/sublime-DefaultFileType seems pretty great. Edit: Ok, two things, there currently seems to be a small bug so the text file syntax is not being correctly picked up due to the whitespace in the filename. In addition you need to set the "use_current_file_syntax" to false,

Sublime Text 2 auto completion popup does not work properly

北战南征 提交于 2019-12-28 05:14:13
问题 I got problem with jQuery Snippet that i installed throughout package control. After installation I do not have popup with jQuery code hints and intalisance. Look at this video: http://code.tutsplus.com/courses/perfect-workflow-in-sublime-text-2/lessons/adding-snippets-through-package-control On 0:50 after typing . he got popup with code hints - I don't have this one. I have to type . on and then press Tab to display popup with snippet... And yes, I'm in JavaScript file and I got default

Sass support for Sublime Text 2? [closed]

拈花ヽ惹草 提交于 2019-12-28 04:51:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Is there an existing package for editing Sass in Sublime Text 2? This seems to be popular: https://github.com/n00ge/sublime-text-haml-sass However, after installation, it appears that it only provides syntax highlighting for scss files. Ideally, I'd like syntax highlighting, indentation and completions for the

Replacing words with greek letters in SublimeText

无人久伴 提交于 2019-12-25 10:53:12
问题 I'm trying to create a snippet in SublimeText which replaces words I type with greek letters after pressing ctrl+g. e.g.: sigma -> ctrl+g -> σ I could make a snippet for each letter, but I have the feeling it should be easier. I don't want to scan through the whole document, only the word the cursor is currently at. 回答1: I was looking for a similar thing and just stumbled over the Package "Greek Letters" by Arne Ludwig (for ST2/ST3): https://packagecontrol.io/packages/Greek%20Letters It works

Replacing words with greek letters in SublimeText

空扰寡人 提交于 2019-12-25 10:53:08
问题 I'm trying to create a snippet in SublimeText which replaces words I type with greek letters after pressing ctrl+g. e.g.: sigma -> ctrl+g -> σ I could make a snippet for each letter, but I have the feeling it should be easier. I don't want to scan through the whole document, only the word the cursor is currently at. 回答1: I was looking for a similar thing and just stumbled over the Package "Greek Letters" by Arne Ludwig (for ST2/ST3): https://packagecontrol.io/packages/Greek%20Letters It works

Sublime does not see env variables

南笙酒味 提交于 2019-12-25 05:32:13
问题 When running sublime from desctop it does not see my PERL5LIB environment variable. When running it from terminal - everithing is OK. I set my variables in .bashrc and .bash_profile. import os >>> os.environ['SHELL'] '/bin/bash' >>> os.environ['PERL5LIB'] Traceback (most recent call last): File "<string>", line 1, in <module> File "./os.py", line 676, in __getitem__ KeyError: 'PERL5LIB' this makes trouble with linting and build system - I can not link and build becase of perl does not see