I was just introduced to Notepad++ and I'm already sold after only using it for a day. At work, we use SAP and I program in ABAP using the built in ABAP editor. It has one feature that I have not found in Notepad++. Off to the right, you can double-click on a function name and Notepad++ brings your cursor to that function. In the ABAP editor, you can actually double-click on a function name in the code itself and it will take you to the function. Is there a plugin or any chance of getting Notepad++ to do the same thing? The function list provides similar functionality and that's nice, but I am so used to double-clicking in the code itself that I'd love to be able to do that in other languages with this editor.
Thanks for your time!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
CCompletion plugin offers the "go to identifier" functionality. You just click on the identifier (so that keyboard caret is somewhere in the word) and press F11 or F12, depending on which view you want to view the definition in.
This has been further improved in the next version, which I plan to publish this week (since I see there's still some interest in my plugin ;). Among other fixes, like more logical F11 / F12 functionality, I have added history buffers for both views, so you can also go back instantly to the line where you triggered it from.
Regards,
Bostjan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't think it's a good idea to have this feature.
Double clicking on the function name in the code (so on the Scintilla component) to jump to function definition change definitively the default behaviour (just to select the word).
Therefore I won't include any plugin which supports such behaviour.
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How about assigning a shortcut key to 'jump to definition', and in the plugin's options, provide an option 'double-click to jump to definition', which is disabled by default?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is a retarded idea - let's think how most of IDE's do it... like to right clik on na function name and from the context menu select "Go To definition" (vs style) or holding ctrl + click (plsql editor style)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to have it too. I use NP++ for professional development in C for embedded systems and this is the only feature I really miss, although it's possible by searching.
In C, right clicking a function (macro name, typedef) and get a context sensitive choice in the pop up menu should be ideal I think.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay, I figured that would be an issue. I was hoping it could be something that could be enabled by those who desire such functionality, but it sounds as if this is an uncommon feature in most IDEs. In every other way, I think Notepad++ surpasses other editors I've used, so thanks for your consideration.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The "double click" thing is a detail!
The real feature is source navigation between files. Just two lines "Go to declaration" and "Go to definition" in the context menu would be enough. And I think this is really the main feature notepad++ is lacking.
If you can do something about it Jenz, that would be great! Just ask the user the root folder of his project, create a database of all functions/variables declarations/definitions, and allow the user to directly jump to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What about make a plugin. Which works by defining hotkeys and cons ponding regular expression.
Say I'll mark a variable. and presses F1. The plugin now steps in take the name of the variable and makes a search based on a user defined regular expression.
Preferable you can choose between how your result is listed.
Option 1 could be like the search window
Option 2 could be highlighting all results
Option 3 could be jumping to first result.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
setup your project folder and generate the ctags.
then press ctrl + alt + space over an identifier and a list comes up.. press space to go to the definition
There's also another plugin called OpenCTags (http://openctags.sourceforge.net/). This has a bug where the list window can't be closed, which is why I use CCompletion right now.
THey both use ctags (http://en.wikipedia.org/wiki/Ctags).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to know, what do you mean by the list window of OpenCTags can't be closed? Actually, it closes when you hit Esc or when it loses focus.
If you think it's a bug, you may post-it on OpenCTags forum
Regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've developped OpenCTags plugin (http://openctags.sourceforge.net), to do things like these. It uses ctags and the tags file is not refreshed automatically, this is a lack.
Otherwise, I would like to have your remarks on this plugin, maybe I can make it better
Regards,
romeo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was just introduced to Notepad++ and I'm already sold after only using it for a day. At work, we use SAP and I program in ABAP using the built in ABAP editor. It has one feature that I have not found in Notepad++. Off to the right, you can double-click on a function name and Notepad++ brings your cursor to that function. In the ABAP editor, you can actually double-click on a function name in the code itself and it will take you to the function. Is there a plugin or any chance of getting Notepad++ to do the same thing? The function list provides similar functionality and that's nice, but I am so used to double-clicking in the code itself that I'd love to be able to do that in other languages with this editor.
Thanks for your time!
Hi,
CCompletion plugin offers the "go to identifier" functionality. You just click on the identifier (so that keyboard caret is somewhere in the word) and press F11 or F12, depending on which view you want to view the definition in.
This has been further improved in the next version, which I plan to publish this week (since I see there's still some interest in my plugin ;). Among other fixes, like more logical F11 / F12 functionality, I have added history buffers for both views, so you can also go back instantly to the line where you triggered it from.
Regards,
Bostjan
I will think about to implement this feature.
Best Regards
Jens
I don't think it's a good idea to have this feature.
Double clicking on the function name in the code (so on the Scintilla component) to jump to function definition change definitively the default behaviour (just to select the word).
Therefore I won't include any plugin which supports such behaviour.
Don
How about assigning a shortcut key to 'jump to definition', and in the plugin's options, provide an option 'double-click to jump to definition', which is disabled by default?
this is a retarded idea - let's think how most of IDE's do it... like to right clik on na function name and from the context menu select "Go To definition" (vs style) or holding ctrl + click (plsql editor style)
was this ever implemented? this is a powerful feature that I'd love to see
I'd like to have it too. I use NP++ for professional development in C for embedded systems and this is the only feature I really miss, although it's possible by searching.
In C, right clicking a function (macro name, typedef) and get a context sensitive choice in the pop up menu should be ideal I think.
Okay, I figured that would be an issue. I was hoping it could be something that could be enabled by those who desire such functionality, but it sounds as if this is an uncommon feature in most IDEs. In every other way, I think Notepad++ surpasses other editors I've used, so thanks for your consideration.
The "double click" thing is a detail!
The real feature is source navigation between files. Just two lines "Go to declaration" and "Go to definition" in the context menu would be enough. And I think this is really the main feature notepad++ is lacking.
If you can do something about it Jenz, that would be great! Just ask the user the root folder of his project, create a database of all functions/variables declarations/definitions, and allow the user to directly jump to it.
+1 vote for Ctrl+click - this is the current SourceInsight's behavior, pretty handy IMHO
You poor sod. Having to work with ABAP and SAP.
What about make a plugin. Which works by defining hotkeys and cons ponding regular expression.
Say I'll mark a variable. and presses F1. The plugin now steps in take the name of the variable and makes a search based on a user defined regular expression.
Preferable you can choose between how your result is listed.
Option 1 could be like the search window
Option 2 could be highlighting all results
Option 3 could be jumping to first result.
This is a feature really important to me also. Notepad++ thankfully has a plugin system.
I use the CCompletion plugin (currently version 1.07)
http://sourceforge.net/forum/message.php?msg_id=4782134
setup your project folder and generate the ctags.
then press ctrl + alt + space over an identifier and a list comes up.. press space to go to the definition
There's also another plugin called OpenCTags (http://openctags.sourceforge.net/). This has a bug where the list window can't be closed, which is why I use CCompletion right now.
THey both use ctags (http://en.wikipedia.org/wiki/Ctags).
Hi,
I would like to know, what do you mean by the list window of OpenCTags can't be closed? Actually, it closes when you hit Esc or when it loses focus.
If you think it's a bug, you may post-it on OpenCTags forum
Regards,
Hi everybody,
I've developped OpenCTags plugin (http://openctags.sourceforge.net), to do things like these. It uses ctags and the tags file is not refreshed automatically, this is a lack.
Otherwise, I would like to have your remarks on this plugin, maybe I can make it better
Regards,
romeo