ide

How to set the style of line comment in phpstorm

烂漫一生 提交于 2019-12-03 10:34:27
问题 How to change the default style of line comment in PHPStorm to at indentation level rather than at first column? if ($condition) { // At first column. // At indentation level } 回答1: You can change this in "Options -> Code Style -> PHP -> Wrapping and Braces" and check "Comment at first colum". 回答2: For "Ctrl+/" line commenting it is in "Settings->Code Style->PHP->Other->Code Commeting->Line comment at first column". 回答3: Version 2017.3 and greater Looking at this answer, noticed that it needs

Android Studio hangs / Freezes when project build fails

那年仲夏 提交于 2019-12-03 10:32:31
问题 I am experiencing a very wired problem since this evening. If I have any errors in my android project, and build is failed, then my Android studio gets frozen / stuck. I cant do anything but kill the Android studio application. Even if I open the same project next time, gradle will try to build and freezes again. [Please find attached screen shot] Only solution I could find is .... I have to find what exactly cause the "build fail" and I will have to resolve the issue using some other editor,

How to remove material theme (or reset to defaults) from IntelliJ / PyCharm?

。_饼干妹妹 提交于 2019-12-03 10:30:01
问题 I have installed Material Theme UI and it made my IDE blackish. Later I decided to remove and and removed plugin. Unfortunately, this didn't give default colors back, some parts of IDE, for example Project pane, remained blackish. How ro recover? How to remove material theme from IntelliJ / PyCharm? 回答1: you can go to the Preferences->Plugins on the search bar, type Material UI then press on the Uninstall button . 回答2: You should: Go to Settings->Plugins and remove Material UI plugin Switch

how to move (up/down) code lines in android studio?

眉间皱痕 提交于 2019-12-03 10:24:31
问题 In eclipse we use Alt + ↑ / ↓ to move line up or down. Is there any shortcut in android studio do the same? Or any quick way to avoid copy & paste? 回答1: To move a line: Place the caret at the line to be moved. Do one of the following: On the main menu, choose Code | Move Line Up or Code | Move Line Down . Press Shift + Alt + Up or Shift + Alt + Down . 回答2: If you want the exact behavior of eclipse you can do this: File --> Settings --> Keymap --> Code--> Folding--> assign Alt + ↑ / ↓ to "

How can I reformat JavaScript code in WebStorm?

梦想与她 提交于 2019-12-03 10:23:36
I am using JetBrains WebStorm IDE. But I think there is not shortcut to autoformat (beautify) the code. In Netbeans, its Ctrl Shift F command which formats the whole file. Is there any command for this? Do I need to install any plugin or something to enable this function? Code | Reformat Code... ( Ctrl + Alt + L ): Keyboard shortcut can be changed in File | Settings | Keymap : If you are not familiar with IDE features yet, use Help | Find Action : This feature is also documented . Yes. Opt+Cmd+L (Mac, or whatever your platform combo is) Or Code > Reformat Code... Using WebStorm 8.0.4 in

How to hook a method to the Edit event in Delphi 7 IDE?

余生长醉 提交于 2019-12-03 10:23:14
I'd like to automatically checkout a file when I start to edit it in Delphi 7 IDE. ClearCase is my version control system and I really hate the need to checkout a file before starting to edit. It always breaks my thought flow: I'm trying to solve a problem, find where I need to change, try to edit it, fail because the file is read only, open clearcase, search the file, finally checkout, try to edit the file again, fail because the IDE still thinks it is readonly, tell the IDE that isn't readonly. When I finally go back to code, I forgot what I was trying do do. I've found this nice and simple

how do i get eclipse to interpret .ejs files as .html?

风流意气都作罢 提交于 2019-12-03 10:16:22
i recently started on a node project and two of the modules i'm using is express and EJS. but default i usually use eclipse as my IDE, it works well for java and decent for html and javascript. but one problem i'm having is that for .ejs files i get no markup color coding, or any form of code completion. it's basically just a plain file. does anyone know how i can get eclipse to interpret .ejs files as .html files? i figure it's pretty similar except for the occasional embed tags. or a recommendation for an IDE more well suited to node.js/html/ejs development. thanks! rlegendi For a specific

PyCharm 3.0 fails to find PyQt5

对着背影说爱祢 提交于 2019-12-03 09:57:23
I've got Python 3.3.2 installed (both x86 and x64 versions) and PyQt5.1 installed on top of them. Recently I installed PyCharm 3.0 Community Edition and configured to work with these Python interpreters. The problem is that PyQt5 is not shown in the list of installed packages and documentation is not working (both Ctrl+Space to autocomplete and Ctrl+Q for docs). When PyCharm is quering skeleton generation it seems to process PyQt but to no use. When I try to install PyQt using packages system inside PyCharm, I get following error: C:\Program Files (x86)\PyCharm3.0\helpers\packaging_tool.py run

PowerCommands for Visual Studio 2012?

女生的网名这么多〃 提交于 2019-12-03 09:47:44
I see that PowerCommands for Visual Studio 2010 supports visual studio 2012, but it was last updated in Aug 2010. Is there a new "PowerCommands for Visual Studio 2012" or is there a viable replacement? You don't need a replacement. If you install the Power Commands again, from within VS 2012 (Tools -> Extensions and Updates), it will be applied to VS 2012. From here : Just reinstall, even if you already have it for VS2010. The reinstall will then apply it to VS 11 I just did it, and it worked perfectly. Edit Productivity Power Tools Microsoft Visual Studio Team Foundation Server 2012 Update 1

Is it possible to adopt IntelliJ IDEA Community Edition for web-development?

大城市里の小女人 提交于 2019-12-03 09:40:12
Currently I'm using IntelliJ IDEA for non-web projects, but I'd love to use it for web development. Unfortunately IntelliJ IDEA Ultimate Edition's price (220 Euro) is to high for me currently and that's why I'm forced to use STS(Springsource Tool suite). And I'm wondering is there a way to adopt IntelliJ IDEA CE version for web-development? Of course I could just use crack or write one but it's not my style. gcooney Sure it's possible. I mean, it's possible to do web development in a text editor. The real question is what do you lose/how much of a pain it is. Some things that you will need to