When I used Visual Studio I was used to inserting XML comments with just a few key presses at the beginning of the method definition (I think /// but it's been a while). Is there a way to insert an RDoc comment before a method inside of RubyMine out of the box? If so what is the keyboard shortcut?
I have a similar problem, and the default alt enter way is not very good. You have to alt enter many times, and the generated type is always Object.
So I write a plugin to do this trick,
And I have uploaded the plugin to JetBrains (Plugin Repository), you can search ruby-doc-adder to download and use it.
https://plugins.jetbrains.com/plugin/9904-ruby-doc-adder.
Also see the readme for usages.
Related
I'm currently writing my own language and I'm at a point where I would like to publish it to the VSCode-Marketplace so people can test it.
I have written a language extension and a syntax highlighter with the Yeoman-Generator and now want to merge it with my executable file that launches the interpreter, so that a file can get interpreted after clicking the run-code button.
I now have checked multiple articles, like:
How to add a run button in visual studio code? - StackOverflow
How to define or support a code language on Visual Studio? - StackOverflow
Debugger Extension Guide - VSCode API
However, I haven't found anything useful.
Currently, the code-runner displays the following error, when clicking on run, or pressing the shortcut:
(Code language not supported or defined.)
But even after a lot of browsing Google for adding new language support to the code-runner, I found absolutely nothing helpful.
(See this page, idk what Settings/Preferences they are referring to!?)
I also was not successful with tasks, as they don't seem to connect to the run-buttom or debug-button in any way.
My question is: How can I make the run-button execute a custom bash-command, when a file in my language is opened?
Okay, I finally did it.
For anyone wondering:
You have to go to the settings and type "code-runner" into the search bar.
Scroll down a little, and you should find the code runner-executor map.
Click on the "edit in settings.json" button.
Now a .json-file should've opened. There are two possible scenarios: Either, there is a json-object called code-runner.executorMapBy... or not.
If there is none, type code-runner.executorMapByFileExtension and let autocomplete do the job.
If the json-object exists, add the file-extension and a bash command that executes your compiler/interpreter. It gets automatically executed in the directory the program-file lies in.
Now still dont know, how to include the settings in my extension, but that was already a big step. Further help is still appreciated!
There is an open source extension called code runner, you can check source code there.
Where can I find the list of all commands available in VSCode and their description?
I'm only aware of these sources:
In the official docs:
This list which only seems to include a subset of Visual Studio Code commands that you might use with vscode.commands.executeCommand API (why is this only a subset of the full list?)
This other list in the keybindings doc, which also only seems to include a subset of all commands available (I suppose those tied to a default keybinding?)
In the editor itself:
I can see a list of commands when I open the "default keybindings". Many actions are commented out with //, but interestingly I don't think this includes all the commands either (e.g. maximizeOtherEditor isn't listed)
Does VSCode have an official list of commands (commandID's) either in its documentation or in its code base? If not:
What's the closest to it?
What's a good way to navigate the code base to try to find all commands and what they do?
I believe that content of "Preferences: Default Keyboard Shortcuts (JSON)" (command ID workbench.action.openDefaultKeybindingsFile) really shows comprehensive list of all native and extensions-contributed commands VSC knows about at moment when invoked.
This file shows keys from VSC's defaults and extension manifests.
Commands with no suggested defaults are those commented out at the end of file.
Their descriptions (as seen in the Command Palette, Keyboard Shortcuts settings, extension Contributions tab and elsewhere) are supposedly in localization properties and I believe there is currently no way to see them along their respective command IDs in single convenient "localized" list. So for now the only way to read the description of command found in aforementioned JSON is pasting its ID into Keyboard Shortcuts search field. (Would be delighted to be proven wrong.)
In case someone ever fell on this and just wanted a quick-list of VSCode commands to browse through: https://gist.github.com/skfarhat/4e88ef386c93b9dceb98121d9457edbf
If you do, please note the VSCode version and commit. These may well be out of date by the time you read them.
I just installed the Emmet plugin for Netbeans, but I can't find in the docs how to trigger the code expansion.
You can expand code using the default "ctrl+cmd+N" on a mac.
I came across this question trying to find out if there was anyway that I could configure the code expansion to trigger by just using the "tab" key.
Anyways, I hope this helps someone!
I am using netbeans ver 8.1 in ubuntu 15.10.
After selecting your CSS code,use ctrl+alt+n to trigger emmet code completion.
You can't use the TAB key to expand abreviation from Emmet in Netbeans. Indeed if you chose the TAB key as shortcut for it, you will erase the shortcut for "Insert tab" and you will not be able to insert tabulation anymore...
The only way is to use the Code Templates in Netbeans and transform all the abreviation from Emmet into a code template, one by one :(
If you want, I've made the code templates for the CSS abreviations in Emmet (Only CSS). With that you can expand the abreviation just with TAB key.
Here is my Github (It's my first... I hope it will work well)
https://github.com/Everice/NetBeans---Emmet-Code-Templates.git
I am using Netbeans 8.1 and ctrl+alt+N working for me (My operating system is windows 10 )
you can use ctrl+cmd+N If you are using MAC
If you are using the newer Plugin from github.com/emmetio/netbeans (the old one is deprecated) You can set Emmet expansion by using the tab key.
The README in the github repo mentions this
Expand abbreviations with the TAB key. Go to Tools > Options > Miscellaneous > Emmet tab. Then check it.
And I can confirm it works for Netbeans11.
One thing I like about Visual Studio is that you can automatically insert the first choice of the content assist instead of pressing Ctrl+Space and then choose the first option from the menu.
Is there a similar way to map a special key combination to always insert the first choice in Eclipse ?
If such option is not a native option in Eclipse, is there a plugin for that ?
I have seen a similar question in SO : Content assist without choosing in Eclipse but the solution suggested there was to rename the content assist tag that is triggered to something unique, I'm looking for something that works for everything.
Nope auto-insert only works when there is only one choice.
You may open an enhancement request for this feature against JDT/Text - https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT
In the NetBeans IDE, changing a variable name in the parameters of a function also changes all occurrences of that name in the function. How can I get that behavior with Eclipse PDT? There is a Refactor → Rename item in the context menu, but it let me refactor only the file name.
This issue has been open since 2006 and you can vote for it in the PDT bug tracker #149818.
Code refactoring presence is the difference between PDT and Zend Studio as it is shown at the comparison page. So no, there is no way to do code refactoring in PDT.
It is quite easy now, to do this in Eclipse for PHP Developers. My eclipse version is Mars.2 Release (4.5.2) Build Id: 20160218-0600.
You just need to put your cursor over the php variable you want to rename, then Right-Click your mouse and select Refactor -> Rename. As soon as you do that, you will straight away see that all the variables, with the exact same name, within that php function, are now selected. You just need to start editing the variable. It will also give you visual cue, how all them are changed simultaneously, while you are editing.
The php functions within a class (locally not globally) can also be changed in similar fashion.
I find it easy, to use the keyboard shortcut on my mac, by pressing Command + Alt + R
Note: Please don't highlight the variable name, otherwise it behaves weirdly.