I have it working for case 1, but not sure how to handle case 2 without creating language specific code and was wondering if there is an API available that can convert the reference to the file. If you need it to be relative to the project root - use Copy Relative Path action instead. These are just general suggestions, since I'm not a P圜harm user. WebStorm 2019.3 is now available WebStorm 2019.3, the last major update this year, comes with faster startup, significant enhancements in Vue. or Code Auto-Indent Lines 2) Check what you have at Settings Editor Smart Keys Reformat on paste P.S. You can adjust the shortcuts in the Settings/Preferences Keymap as needed. 1) Select your code fragment and Code Reformat Code. Alternatively: Edit Copy Path (Ctrl + Shift + C here on Windows keymap). In my plugin I detect that the string is a reference and convert it to a Markdown link to the file. Right click on editor tab or on entry in Project View and choose 'Copy path' action. I havent changed any code style setting and, if I had, Ive no idea which one controls this. However in those IDEs/languages where the string results in a language specific reference, such as Java and Php, the reference needs to be resolved to a file. PhpStorm has recently started to mess code comments when I copy and paste, and 'Reformat Code' doesnt seem to fix it. Where the resulting string is a relative path from the project base path, I can easily find the file being referenced. If above fails, I use the file index to get all files matching the file name in the reference. After extensive digging around I found a thread on the JetBrains bug tracker which seems. I’ve been experiencing some weird issues on my Macs for a while now, and in the last week I’ve been having serious issues pasting into any JetBrains IDEs while text is selected. I first test to see if a file exists if the reference is treated as a path relative from project base path. Bug: IntelliJ/Jetbrains IDEs (Webstorm, PHPStorm, P圜harm) 'double paste'. I found a way of doing this that works but seems a bit of a kludge. You can completely control, fix and watch all the issues with a visual merge. PhpStorm: Http/Controllers/MultiMarkdownController.php:77 The 'Copy Reference' puts a string on the clipboard. and open the device activation window, click Copy and Open.2. IDEA (Java): com/vladsch/idea/multimarkdown/psi/impl/MultiMarkdownPsiReference.java:268 All IDEs (IDEA, PhpStorm, WebStorm, … ) have “Copy Reference” action that copies path relative to some module and if the action is invoked from the editor then line number is included.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |