sublimetext2

How to use the console within Sublime Text

旧城冷巷雨未停 提交于 2020-02-18 05:13:06
问题 I'm using Sublime Text 2 to code my programs, and want to run the console within it to compile and run them. Is there any way to embed the console command line inside Sublime Text 2? Is it already there? I'm using both Windows and Linux. 回答1: I think you can try creating a custom Build System . Tools --> Build System --> New Build System... This is a simple build script for the C programming language: { "cmd" : ["gcc", "$file", "-o", "$file_base_name"], "cmd" : ["$file_base_name"], "selector"

How to use the console within Sublime Text

青春壹個敷衍的年華 提交于 2020-02-18 05:09:41
问题 I'm using Sublime Text 2 to code my programs, and want to run the console within it to compile and run them. Is there any way to embed the console command line inside Sublime Text 2? Is it already there? I'm using both Windows and Linux. 回答1: I think you can try creating a custom Build System . Tools --> Build System --> New Build System... This is a simple build script for the C programming language: { "cmd" : ["gcc", "$file", "-o", "$file_base_name"], "cmd" : ["$file_base_name"], "selector"

How to use the console within Sublime Text

断了今生、忘了曾经 提交于 2020-02-18 05:09:11
问题 I'm using Sublime Text 2 to code my programs, and want to run the console within it to compile and run them. Is there any way to embed the console command line inside Sublime Text 2? Is it already there? I'm using both Windows and Linux. 回答1: I think you can try creating a custom Build System . Tools --> Build System --> New Build System... This is a simple build script for the C programming language: { "cmd" : ["gcc", "$file", "-o", "$file_base_name"], "cmd" : ["$file_base_name"], "selector"

How to use the console within Sublime Text

心不动则不痛 提交于 2020-02-18 05:08:05
问题 I'm using Sublime Text 2 to code my programs, and want to run the console within it to compile and run them. Is there any way to embed the console command line inside Sublime Text 2? Is it already there? I'm using both Windows and Linux. 回答1: I think you can try creating a custom Build System . Tools --> Build System --> New Build System... This is a simple build script for the C programming language: { "cmd" : ["gcc", "$file", "-o", "$file_base_name"], "cmd" : ["$file_base_name"], "selector"

Sublime Text 2: Error trying to parse settings

此生再无相见时 提交于 2020-01-31 03:11:07
问题 How do I fix this error? Error trying to parse settings: No data in ~/Library/Application Support/Sublime Text 2/Packages/User/JavaScript.sublime-settings:1:1 回答1: Most likely you or something has created an empty file in your User config directory. The config files must be valid JSON. The file in the question is empty and is not JSON. Try deleting the file or get a fixed version from somewhere (not sure for what the file is being used for) 回答2: Default installs c: / Program Files / Sublime

SublimeText2: SublimeCodeIntel doesn't adds import even when it suggests

自闭症网瘾萝莉.ら 提交于 2020-01-25 11:21:12
问题 I am trying to use SQLAlchemy with SublimeText2 and I do the following sequence Then I do and then so my code is from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Transaction(Base): __tablename__ = 'transaction' # id = Column('id', Integer, primary_key=True) id = Column('id', Integer, primary_key=True) def main(): print 'Hello World!' if __name__ == '__main__': main() When I try to build this as python build i see line 10, in Transaction id = Column('id',

Regex match space not \n

六月ゝ 毕业季﹏ 提交于 2020-01-25 11:18:12
问题 Original text is 81277184956 0 31 10000 0 0 0 0 4 afdsf sadfdsf I want to replace all space with character "|" by regex at Sublime text 2. Expected result should be 81277184956|0|31|10000|0|0|0|0|4 afdsf|sadfdsf If i use pattern "\s+", it will match \n too so that two lines change to one line. How to get correct result? 回答1: Use [[:blank:]]+ , which equals to [\x20\t]+ Click here for more details of Oniguruma Regular Expression syntax, regex module used in Sublime Text. 回答2: You can add an

How to configure Sublime text 2 to use my installed python libraries

僤鯓⒐⒋嵵緔 提交于 2020-01-25 07:50:06
问题 I just started using Sublime Text 2 and I can't seem to get it to work with most of the libraries I have installed for Python 2.7 for windows, every time I try to import them and run it, it gives me this message "C:\Python27\Python.exe: can't find ' main ' module in ''". I tried configuring the Python.sublime-build but nothing I do to it seems to work, for reference this is what it has right now: { "cmd": ["Python", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",

How to format django template in Sublime Text

耗尽温柔 提交于 2020-01-24 02:13:06
问题 How can one format django template in Sublime Text. My template consists of: HTML (django template language with {{ variable }} and {% stuff %} ) javascript Is there a way to get same kind of formatting PyCharm provides? 回答1: This package should help: https://github.com/squ1b3r/Djaneiro Here are some tips on install: How to install plugins to Sublime Text 2 editor? 回答2: A couple different things: Djanerio has a nice set of auto-completion and color schemes specific to Django. Check out their

git commit error with sublime text 2 [duplicate]

 ̄綄美尐妖づ 提交于 2020-01-22 16:18:45
问题 This question already has answers here : How can I make Sublime Text the default editor for Git? (16 answers) Closed 3 years ago . I'm taking the course "How to Use Git and GitHub" on Udacity. I'm following along with the examples but I've run into a problem. I've been at it trying to fix the problem via googling and trial and error by myself for about two hours. I think it's about time to make a StackOverflow post. I prefer trying to figure out my issue without posting on StackOverflow, but