I am using Notepad++ (on windows) to edit my C++ code (then compile it using g++).
When I type #include<, I would like a suggestion list to be displayed with all the available header files in the header files directory (or already added list of header files), just like it happens when I type function-names and the suggestions show up for autocompletion.
The "Style Configurator" has no such options under preprocessor directives.
Please tell me the way to achieve it (step-by-step if possible).
In other SynWrite editor: create simple Python plugin, which will act on Ctrl+Space press: it must suggest filenames from any dir.
Notepad++ cannot do it.
Related
I've been looking everywhere for an answer and I can't seem to make sense of anything I find. There's either to references to files that don't exist in my installation, or the file does exist but is just raw hexadecimal data rather than code. For example, I keep seeing that I should look in my packages/(insert programming language here) folder to access autocompletion files for that particular language. Unfortunately, when I click browse packages, the folder only contains a bz2 folder and a User folder.
I'm trying to modify sublime text's PHP autocompletion and make it so that whenever I type
<?
I can hit enter and it would autocomplete to
<?php ?>
with the cursor set between the tags. I've seen this as well but as I said earlier I've had problems getting any of these solutions to work for me.
How do I add this simple autocompletion to my sublime text 3?
You can do that by adding snippets. Just go to Tools > New Snippet.... There's a lot of docs about how to write a snippet.
Also, in your case, you can install the Additional PHP Snippets and trigger that completition by typing php and hitting tab
In Eclipse you can jump to definition/declaration by clicking on hyperlinks with pressing command key (control for Windows). I would like to use the same functionality for Sublime Text 3. Mostly I work with Robot Framework with a lot of files and would like to jump to the source of Keyword through whole project.
In sublime this kind of feature is provided by plugins.
Look at https://sublime.wbond.net/packages/Robot%20Framework%20Assistant or https://sublime.wbond.net/packages/Robot%20Framework, but be aware you can't use both, they conflict.
This plugin allows you to jump from .txt (.robot) files to the keyword's definition in .py and in .txt (.robot) in case they are resource files. Please read more here: https://github.com/andriyko/sublime-robot-framework-assistant
You can add below two plugins in pycharm, it will then allow you to navigate.
If I change the extension, Netbeans stops recognizing that it is javascript and there are underlines under all of my variable names, etc. Please help me because limitations in the php framework I am using are forcing me to label javascript files with another extension other than .js.
Using Netbeans 7.
Tools ยป Options to open Options dialog.
Under Miscellaneous, activate Files tab, then
click on the New button.
Enter your new extension (w/o the dot).
Select an appropriate MIME-type (text/javascript in your case) and
click on the OK button on the bottom when you're done.
Just curious, what framework is it that would force anyone to use JavaScript w/ other extensions than .js, please enlighten me (thanx in advance).
Qt Creator, Eclipse, and almost IDE's have an auto-complete for the functions that I had created in the headers files and I can navigate through the definitions of the functions.
First I want to know how that feature is called so I can search if it is possible to do the same with sublime text.
Thanks
It is called code completion. Keep in mind that to show up functions defined in other than the current file, you need to create a project (or whatever sublime calls this) so it can scan further files.
You might find this question usefull:
Sublime Text 2 and ZF2 ... auto complete not works
I have a file with extension .xml.
But it doesn't necessarily contain XML. It may also contain HTML and JavaScript. Now I would like to either have Eclipse decide inteligently/heuristically which syntax highlighting would be appropriate or to switch it myself.
Any ideas?
Eclipse associates files with an editor. You can let eclipse decide which editor to use (e.g. defaults per file extension) or select the editor by yourself. I guess you might already know that or have at least experienced it.
Syntax highlighting isn't always set seperately but instead part of some editor (together with stuff like keyboard shortcuts). So what you are going to need is an editor that behaves the way you want it to. I do not know if there is an editor like this available but one options is writing an eclipse plug-in and implementing such an editor.
Fortunately there are great editors for each of XML, javascript, HTML, etc that are all open source. I guess you might be able to use some of their code. Ideally as a client of their API / Objects or if it won't work out just by reusing code.
short answer: not possible. use PHPStorm instead :)