jetbrains-ide

Shortcut key in PhpStorm to move to HTML end tag

陌路散爱 提交于 2019-12-22 02:04:41
问题 Having a section of HTML tag: <div> /* a long long text */ </div> Suppose the caret is at the begin of the tag <div> , is there any key to move the caret to the closing </div> ? There is a similar concept on CSS (doesn't work on HTML) that works fine: .myClass { .... } in this case, Ctrl + ] / [ moves to the code block end/start. Here is the PhpStorm Default Keymap. I can't find the key I'm looking for. 回答1: Ctrl + ] works just fine in .html files. But it fails for HTML tags in .php . It's a

Valid methods in being highlighted in red 'Unresolved Reference'

一曲冷凌霜 提交于 2019-12-21 11:26:12
问题 How to solve this problem? The program works. But the methods in Gogland are highlighted in red. Qt version 5.8 is added. Gogland (1.0 Preview) 1.0 EAP Build #GO-171.4694.61, built on June 27, 2017 Gogland EAP User Expiration date: September 25, 2017 JRE: 1.8.0_112-release-736-b21 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.8.0-58-generic batis@dev:~$ printenv | grep GO GOROOT=/usr/lib/go-1.8/ GOPATH=/home/batis/gocode/ package main import ( "os" "github.com/therecipe/qt

PhpStorm Git keeps saying: no changes detected

随声附和 提交于 2019-12-20 18:22:15
问题 I tried to work with PhpStorm and Git . I have previous experience using NetBeans and I didn't have any problem with Git on NetBeans. With PhpStorm I create the project clicking Checkout from Version Control -> GitHub. After that, I created a file and I didn't see any file in Changes list, under Version Control . I clicked Push and a dialog with message No changes detected appears. A month ago I tried to do the same with PyCharm and I got the same problem. I found an online blog which

Crash Jetbrains ide with Yosemite Mac osX (Webstorm, intellij)

寵の児 提交于 2019-12-20 12:32:08
问题 This is a tip in reference to Yosemite ´s users (10.10). Yosemite erase 1.6 apple jdk and install 1.7, but JAVA´s IDE for example Intellij or Eclipse needs 1.6, if you haven´t reinstalled this version, your ide will crash at the beginning... after this process you can configure your ide with 1.7 version. Here the link : Apple JDK 1.6 回答1: Please do not edit your Info.plist file as it will break the application digital signature and prevent the patch updates. I was able to get phpStorm working

Pycharm can't change interpreter from python 2.7 to 3.4

ⅰ亾dé卋堺 提交于 2019-12-19 21:44:29
问题 Im currently working on an open source Python project on Xubuntu Linux 3.19.0-51-generic x86_64 using Pycharm. Even though I my project requires Python 3.4 or greater, the IDE seems to force the project to use Python 2.7. I've tried to change the interpreter from the Project Interpreter menu (see screenshot), and went so far as to remove the Python 2.7 entry from the Project Interpreter menu..All to no avail. I have attached a screenshot of Project Interpreter menu and here is the first line

IntelliJ IDEA braces, brackets and quotes customize color highlighting

坚强是说给别人听的谎言 提交于 2019-12-19 05:05:01
问题 How to change color of brackets when they are selected ? 回答1: Go over to Settings, and then just go to this menu: 回答2: Maybe the plugin HighlightBracketPair is suitable for you. The plugin will highlight the most left and most right brace pair for you when you move the caret, and you can custom the color the effect. Java Highlight Go Highlight Config Page 回答3: File => Settings => Editor => Color Scheme => General => Code => Matched brace 来源: https://stackoverflow.com/questions/21259635

IntelliJ autocompletion replacing the subsequent word

柔情痞子 提交于 2019-12-18 11:46:36
问题 I've been using IntelliJ for a while now, but there's always been something that bothers me. Its to do with the autocomplete feature. This gif should be enough to illustrate. In essence, when typing a word next to another one (that is with no space in between) regardless of the two words or the context, be it keywords or variables, the autocomplete will replace the next word by the one you complete with. I/m surprised that IntelliJ doesn't have a setting for that (at least not that I'm aware

How to make phpstorm display line numbers by default?

南楼画角 提交于 2019-12-18 09:56:31
问题 How to make phpstorm display line numbers by default? Couldn't find that option. It's kind of annoying to turn them on manually for each page. 回答1: Settings (or Preferences if you are on Mac) | Editor | General | Appearance and check Show line numbers . 回答2: Just now found where is it on Windows . Its View -> Active Editor -> Show Line Numbers (changes only for current document) and File -> Settings -> Editor -> Appearance -> Show Line Numbers (for all documents) For Mac Version go to

What is a purpose of Lambda's with Receiver?

佐手、 提交于 2019-12-17 22:49:10
问题 What is a purpose of Lambda's with Receiver in Kotlin, while we have extension functions ? Two functions below do the same things, however first one is more readable and short: fun main(args: Array<String>) { println("123".represents(123)) println(123.represents("123")) } fun String.represents(another: Int) = toIntOrNull() == another val represents: Int.(String) -> Boolean = {this == it.toIntOrNull()} 回答1: Lambdas with receivers are basically exactly the same as extension functions, they're

Rubymine(Jetbrains) local server. Can I get it to run from localhost root?

不想你离开。 提交于 2019-12-17 20:32:46
问题 Currently when I open the html file I'm working on it takes me to http://localhost:63342/project-folder/index.html Is there a way to set Rubymine to run my project from the root, eg. http://localhost:63342/index.html 回答1: http://localhost:63342/index.html -- you cannot have this kind of URL with built-in web server .. as IDE does not know what project to serve (as it works for ALL your projects a not only currently opened). When built-in web server is in use, the URL has to have some hint (