I have the TextFX plugin, and one of its functions is convert text to proper case.
I used the shortcut mapper and set the shortcut in the plugin commands tab.
The shortcut works without an issue but when I record it as a macro I get something that looks more like a serialized export.
Can anyone help me get this working?
Cheers
Related
I'm using p(...) as a shortcut for console.log(...) in JavaScript. And every time I use it VSCode auto-comlete it into package(...).
Seems like there are couple of different code generation and JS variables auto-comlete support. Is there a way to know where that package come from and how to disable it? Visually it looks like that:
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.
I am new to Sublime text. I have been installing a lot of plugins lately.
One thing that I realized is that all the plugins if assigned a keyboard shortcut would perform their operations irrespective of the type of file type.
For example: if I have a plugin such as HTML tidy and if i have a keyboard shortcut say CTRL+K. Now if I open a .js file and press CTRL+K the HTML Tidy plugin somehow ends up executing.
Is this the expected behavior or have I configured something incorrectly?
That's the behavior defined by the implementation of the plugin and the associated key binding. I would recommend creating an issue or making a pull request for that plugin where the file type is checked. They can also add a context to their keybindings to only run under a specific scope. You can create user keybindings with a context to run the proper command. But understand that if it does not match a context for your keybinding, it will fall back to whatever the plugin is defined as. Let me know if I can clarify anything.
How does the Eclipse editor work to enable code completion? For example, within the XML editor for Hibernate property files, if I ctrl-space within a tag, a list of possible value relevant to hibernate will show up.
I understand that the XML editor is pre-configured to understand xml tag, but how about tag specific to a particular framework? How does Eclipse know about that?
I believe that the eclipse XML editor gets the content assist information from any referenced DTDs, or XMLSchema information it associates with the XML file. Try this experiment: Remove the DOCTYPE entry at the beginning of the file and see if content assist still works.
If you're interested in writing your own content assistants, you may want to start by reading the following:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_contentassist.htm
In a nutshell, like most things in Eclipse, this is a platform hook. When you press the button, it queries all the registered assistants (I'm simplifying here), and they provide suggestions based on the current element or even the current content.
When writing a source editor or viewer for a particular language or document type, it is common to provide at least some rudimentary content assistants.
Removed the DOCTYPE entry at the beginning of the file and im now able to see the commands while typing ctrl+space...
To add to Uri's answer, you can define your own editor for your own language with XText as long as you have a simple EBNF grammar language for your DSL (domain specific language).
You will have:
syntax coloring,
model navigation (F3, etc.),
code completion,
outline view, and
code templates.
Here is a solution you can work. Actually I was facing a same problem with struts.xml file. I was not able to produce tags by cntrl+space
what i did was...
go to Preferences...Java...Editor...Content Assist...Advanced
check all the check-boxes ON and press OK.
sometimes the problem persists due to some false alarming in eclipse. If it happens, just delete your xml file and create a new one in same location.
I hope it will help.
I had the same issue while using the struts.xml file.
I got fix when I tried below...
Go to “Preferences>Java>Editor>Content Assist>Advanced“. Make sure “Java Non Types Proposals” are ticked on both the places as shown in the image below then click Apply and OK button:-
I am trying to add simple syntax highlighting and auto completion for a simple scripting language...
I added syntax highlighting using this article
Now I want to know how to enable auto completion with Notepad ++ for my custom language. Does anyone know how to do that?
The link provided by Mark no longer works, but you can go to:
Notpad++ 6.6.9
Settings -> Preferences -> Auto-Completion -> Enable auto-completion on each input.
I find it very annoying though, since a big autocomplete block is always coming up and I would just like to see autocomplete when I press tab or a key combination. I am fairly new to Notepad++ though. If you know of such a key combination, please feel free to reply. I found this question via Google, so we can always help others.
For basic autocompletion, have a look at the files in %ProgramFiles%\Notepad++\plugins\APIs. It's basically just an XML file with keywords in. If you want calltips ("function parameters hint"), check out these instructions.
I've never found any more documentation, but cpp.xml has a calltip for fopen, while php.xml is quite complete.
Go to
Settings -> Preferences -> Backup/Autocompletion
Check Enable auto-completion on each input. By default the radio button for Function completion gets checked, that will complete related function name as you type. But when you are editing something other than code, you can check for Word completion.
Check Function parameters hint on input, if you find it difficult to remember function parameters and their ordering.
Autocomplete in Notepad++ is as simple as hitting Ctrl + Enter or Ctrl + Space in the interface.
Ctrl + Enter - as simple as that!
This, for many people, will be better than autocompleting on everything.
Don't forget to add your libraries & check your versions. Good information is in Using Notepad Plus Plus as a script editor.
You can also add your own suggestion.
Open this path:
C:\Program Files\Notepad++\plugins\APIs
And open the XML file of the language, such as php.xml. Here suppose, you would like to add addcslashes, so just add this XML code.
<KeyWord name="addcslashes" func="yes">
<Overload retVal="void">
<Param name="void"/>
</Overload>
</KeyWord>
It is very easy:
Find the XML file with unity keywords
Copy only lines with "< KeyWord name="......" / > "
Go to C:\Program Files\Notepad++\plugins\APIs and find cs.xml for example
Paste what you copied in 1., but be careful: Don't delete any line of it cs.xml
Save the file and enjoy autocompleting :)
Open Notepad++ and Settings -> Preferences -> Auto-Completion -> Check the Auto-insert options you want.
this link will help alot: http://docs.notepad-plus-plus.org/index.php/Auto_Completion