I've been using both Sublime text 2 and PHPStorm for the last few months and am wondering if anyone knows if I can import snippets from Sublime into PHPStorm? Sublime has some really awesome snippets and I'd like to integrate them into PHPStorm without having to add them in manually.
Thank you :)
I came across these two solutions:
https://drupal.org/project/phpstorm-templates
https://github.com/DjebbZ/Drupal-PHPStorm-Live-Templates
I hope this will help you in PHPStorm.
Related
I want some way to make an autoreplace instance in Sublime Text 3, so, when i write a specific character or string, Sublime automatically changes it to another string (predefined by me)
I'm not looking for a snipplet where you have to press tab or similar, i want something that changes it automatically.
Is it possible via some keybind or plugin?
Thanks in advance!
Take a look at SublimeCodeIntel which provide similar functionality to IntelliSense
https://github.com/SublimeCodeIntel/SublimeCodeIntel
But there are a great many other plugins which can assist with source editing - its very subjective and dependent on the language used.
Good luck
So I have a few hundred pages that need their navigation bars updated. I've looked in sublime text, aptana, notepad++ and used the search here but wasn't able to find a simple solution.
All I wish to do is add to the following code so it says
Home
Help
Other
Rather than
Home
Help
I'm using Windows if this makes a difference. I'm aware of the built in find and replace features of aptana and sublime etc but it seems unable add new code to those 100 pages which would be preferred over using any tricks or browser hacks, but I will be willing use those tricks if absolutely necessary.
Due to certain requirements, I'm not able to use php includes ,javascript or jquery and similar . Thanks for any suggestions in advance.
With Sublime Text you have the option to find in all files:
You can then choose a folder to search in, what text to search for and what to replace the found text with.
All files in the chosen folder will be searched.
I am wondering that I saw in a tutorial video the tutor types .classname in sublimetext 2 and pressing tab it will appear like and form.formclass[roll="form"] and it will become
<form action="#" class="formclass" role="form">.
How could it possible? anyone help me?
What you probably saw was Emmet for sublime text.
This provides many cool features when writing html or css. You can read more about these from the github repo I linked.
That's snippets you can create to suits your needs, here the doc and here some examples
Or there are pre-created snippets you can install using control panels, here a list
I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a way that makes them readable... Sublime Text automatically chooses Lisp for Flex files, but that doesn't do the trick all that well. Any suggestions to try another syntax? Or is there a plugin somewhere that's useful (haven't found anything so far)?.
I haven't found one built specifically for Sublime, but I've found one for TextMate, which Sublime is compatible with.
Therefore, for Flex highlight, all you need to do is git clone the TextMate's syntax files to your Packages folder.
Regarding Bison, I've found a syntax for TextMate, but it didn't work very well for me. The one Vaklarados posted worked nicer with my source files.
The one thalesmello posted works well for Flex. For Bison, I've found this one - it's pretty minimal but it's a start:
https://github.com/Jackneill/sublime-text-packages/tree/master/Packages/Bison
Please let me know if you find something better!
edit: I take it back - the Flex one highlights start states & C/C++ code in pink and it looks quite terrible. For basic lex files it looks okay, but it needs work. :)
edit again: as sonu kumar pointed out, the project has been removed from github. For an alternative you could try the built-in OCamlyacc highlighting (pretty decent), or another alternative: https://bitbucket.org/artyom_smirnov/sublime-text-bison-highlighter (needs some work)
I'm using Sublime a lot more & do a fair bit of work in Flex/Bison, so I might get around to writing one... one day. :D
Indeed there are:
Flex
Bison
It's not so hard to write your own packages for non-typical languages. Just browse the source of other language syntax files and copy-paste-change what you need. Also raises your regex skills to a better level.
Install Package Control for Sublime Text.
I found this there:
https://sublime.wbond.net/packages/Bison
Do try it, I found it good enough for my use.
https://github.com/m-happy/Packages/blob/master/Flex/Flex.sublime-syntax
You can add this file to your sublime package.
This is very simple question:
Is it possible to start Sublime Text in fullscreen mode in OSX?
I've already activated "use_simple_full_screen":true option.
Thanks.
In case someone also need this, I made a plugin to start Sublime Text in fullscreen mode. It is available with Package Control.
https://sublime.wbond.net/packages/AutomaticFullscreen
As far as I know, this isn't possible. I don't think I've seen any other program do this either, on OSX at least.