I'm using Sublime Text as My Editor, Sublime Text Doesn't allow auto-complete or code hints between multiple files, instead you get hints for functions or variables that are located in the same file your working on. How can i get code hints of a function that is located in another file?
Thanks.
This package is what you are looking for I guess: https://sublime.wbond.net/packages/All%20Autocomplete
Related
I started to write some code for sagemath having extension .sage. I write those on sublime text editor. However there is no syntax highlighting
for .sage documents. Sage is mostly based on Python. So is there any way that I can tell sublime to use Python syntax whenever I use .sage file. ?
Thanks is advance.
From the main window, click the View menu, choose Syntax, then at the top "Open all files with current extension as…" you can choose which syntax highlighting to use.
Is it possible to have multiple custom snippets in one file using sublime text 2?
Currently you have to create individual files for each snippet.
You can create a *.sublime-completions file. For information on how to do this, see here and here.
Sublime Text 2 only has an additional side bar window, but it's inconvenient with bigger file, such as reStructuredText file with lots of contents.
So is there a plugin to show file structure in Sublime Text (haven't Google out so far), or it is possible to create a plugin to show the file structure?
Thanks!
There is no such plugin as far as I know.
For your code files you can see the structure in Go to Symbol menu (CMD+R on OSX)
if the files are supported by Sublime Text. SublimeCodeIntel provides "code intel" support for many programming languages.
Sublime Text did not have a decent .RST structure parser last time I checked few months ago, but I would be really grateful if someone creates such plugin (willing to donate).
You can create syntax colorizer with the base Sublime Text (no Python coding needed), but for language analysis a full fetched plugin is required. I suggest you open another question for how to write such plugins.
Basically, I have a stylesheet I need to add to a LOT of HTML files. It would take so long to add it to each one manually that it wouldn't even be worth it. Is there any script or application I can use to help me with this, or any tricks in HTML I can take advantage of? Thanks.
Most IDE's have a function called 'find and replace'. I work with Netbeans, but I imagine almost every IDE can do this, perhaps even a decent text editor may be sufficient. Usually you can find it in the 'edit' menu somewhere.
You could search for </head> and replace it with <link href=.../></head> or something similar.
Ususally you can tell the replace function which folder it should search in, and even wich file types to check for. Should be easy and done in a couple of seconds.
Do these HTML pages share some resource? You can consider 2 options:
1 - Make a script to insert those stylesheets to the HTML files head automatically or;
2 - Insert the stylesheet once in an resource(Require the file for an script i.e) already shared by those files;
use php include(); and paste it on top of files. wont take you more than 5sec per page.
You can do this fairly easily using a good text editor like Sublime Text 2 or TextMate (Mac OS X). Here are instructions for how to do this in Sublime Text 2:
Open Sublime Text 2
Create A New Window (File » New Window)
Make sure the Side Bar is visible (View » Side Bar…)
Drag and drop the HTML files (you want to add the stylesheet to) onto the Side Bar
Find » Find in Files… (Note the mini find-replace dialog at the bottom of the window)
Search: </head>
Where: (Clear this field so it will look in: Open files and folders)
Replace: <link href=.../></head> (Hat tip to: #PeterVR)
Click Replace
Confirm dialog and be sure to save all your files!
Good luck!
I started using this great editor. Unfortunately I missing here one improvement (from NuSphere PhpED - past editor that I've used, this understanding)
Example:
I have a project open, I open the HTML file, for example, do I wonder with some ID and then in the CSS file, it's easy to find through insinuation. Of course it works the other way around (create something in CSS and HTML then it easily through the whisperings find).
In this sublime does not work. Is there a plugin? thank you
(screenshot http://i.stack.imgur.com/v39O8.jpg)
From what I understand, you want to be able to link autocompletes from one file to another? I'm actually pretty interested in this too, just scanned through the package-control listings and found:
All Autocomplete <------
So yes you can do it! Go install the package :)
You can install sublime codeintel package....it might helps.
Here is the link: https://github.com/Kronuz/SublimeCodeIntel
Try this CSS Sublime Package
hear it works quite well...about to give it a shot