I am working in Ubuntu 18.04. When I open the Search Everywhere panel with Shift + Shift and type the start of a filename, I see the list of found results. I can open the files by clicking on their name, but is there a keybinding to do the same action?
Normally Enter should open the selected file. This doesn't work in some versions due to IDEA-200654 that is fixed in 2018.3
Related
my notepad++ cpp is file shows an internet explorer sign as it is being saved, opens in internet explorer or I have not choose which software I want to use to open it, instead of just opening in notepadd++, but when ever I try to see the info about file it shows cpp I looked up and didn't find any such question to get answer from.
Maybe it's being saved with the wrong ending. are you hiding file extensions in explorer? Right click on the file and check the name in properties. Also you want to ensure that file extensions are always shown. Go into "view" in Windows Explorer and ensure that "file extensions" checkbox is on (later Windows versions). Or in earlier Windows/Windows in general, click into Folder Options/View and turn off "Hide Extensions for known files". As a developer you always want file extensions shown.
If you have the wrote file extension and it's hidden the file could be like "file.cpp.txt" or "file.cpp.html" or something instead of an actual cpp file.
Once you've double-checked the file extension and made sure file extensions are not hidden, if that isn't it, right click the desired file and look at "Open With", "Choose Another App/Program" (depending on Windows version), then look for the right program to open it with and make sure you click "always open with this program".
I am working on a project which requires me to open an HTML file and use its contents. I added it to Resource files but when I try to open it lie this:
std::ifstream templateFile;
templateFile.open("filename.html", std::ifstream::in);
The operation fails. I checked it by using templateFile.fail().
The above operation works when I provide the full path. The file lies in the project folder along with other files. I tried setting build action to content but still it doesnt work. Please Help.
Output directory, where your executable is compiled and put into differs from the source directory, where you create all your .cpp/.hpp files (I assume there is filename.html file). Local path filename.html is supposed to be local for your executable file, not the source file.
Read more about changing the output directory here: https://msdn.microsoft.com/en-us/library/ms165410.aspx
Under Configuration Properties / Debugging, see what your Working Directory is using the macros dialog box. Move your file into this folder.
Click the button shown in the figure. There, click either Edit or Browse. Browse will take you to the working directory. Edit will expose the link to open the macros box
My Eclipse didn't show any console outputs.
I tested the ".exe" in the debug file of my C++ project, with wich i received an error that "libgcc_s_dw2-1.dll" was missing.
I read abit on this and i found that i could simply copy/paste that file from my c:/MinGW/bin folder to the ".exe" in the "/debug" folder of my project.
That helped me with that error but i then received the message that "libstdc++-6.dll" was missing, so i did the same again.
Now The ".exe" works fine and I get an output in my eclipse.
But now i'm afraid that i will get simillar erro's at my next build if i use some what more complex programming.
I also think that it would be very timeconsuming if i have to add those files too all of my future projects.
Question:
So my question now isn't there a way to tell eclpise that those .dll files are at "c:/MinGW/bin"?
PS.
I suspect that a similar question already exists but I wouldn't have a clue on what tags I'd have to search for.
Speacial thanks to #Deniz !
right click on "my computer" => properties .
on the right select "Advanced system settings".
open "Enviormentvariables"
search for "path"
select Edit
you'll have a list of paths, hit "end" on your keyboard to make sure you are at the end of this list.
then add ";" to close the previous path and add the path to your MinGW/bin location. (by default C:\MinGW\bin).
result in adding ";C:\MinGW\bin"
I'm teaching myself some Django tonight using the local dev package at instantdjango.com
I made it through half the tutorial, building a basic map with points on it, then closed out of the console for a bit. I just fired it back up and now when I try to use notepad++ to edit files, console tells me it doesn't recognize the command. What happened?
When I as working through the first half, I was able to type: "notepad++ filename.ext" and I'd get a text editor that would pop up.
Now when I type that, it doesn't recognize the command.
How do I get back the ability to use the text editor and how did I lose it?
In a windows terminal, you can launch notepad++ with the following:
start notepad++ <filename>
Note that the filename is optional.
Most likely the directory in which the Notepad++ executable resides is not in your system's PATH. For information about fixing this please see How to set the path in Windows 2000 / Windows XP.
If you are using gitbash or cygwin, you can create an alias
alias np='start notepad++'
And use
np myfile.txt
This is what I have done, in this way you dont have to type notepad++
Create np.bat file with this set of commands
#echo off
start "" "C:\Program Files (x86)\Notepad++\notepad++.exe" %*
place np.bat file in c:\Windows
open the command prompt and type np or np myfile.txt and enter.
One way is to make a change to this registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Notepad++.exe]
You can download a zipped .reg file from Donn Felker that lets you open a file with just an n shortcut.
I edited the .reg before running it and to make sure the path to Notepad++ is correct (e.g. C:\Program Files (x86)) and I also changed the shortcut to n instead of n.
Then double click to add to your registry.
How do I open up the template files in Dreamweaver, without having to go through all the "open with" process? I've had problems getting this to work properly in Vista 64-bit, but have had this working in prior versions of Windows, so I know it's possible.
I'm working with CakePHP, so it uses the "ctp" extension, but I'm sure other frameworks have different extensions, so I decided to leave this as generic as possible.
I found an excellent guide to this question that I've copied and pasted from the following link:
Configure CakePHP CTP Files in Dreamweaver
For Windows Vista (64-bit) instructions I just want to preface it with the following useful information and tips:
Instead of "Program Files" use "Program Files (x86)".
The location of AppData is quickly accessible by holding the [Windows key] (between CTRL and ALT) and pressing "R" for Run. This will give you a Run prompt, within which you should type "shell:appdata". This will give you a Windows Explorer window in your AppData folder. My Dreamweaver configuration file was found here: "C:\Users\Jed Hunsaker\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration".
Now is a good time to open another Run prompt and type "shell:sendto". Add shortcuts here to Notepad, Dreamweaver and why not Google Chrome and/or Firefox? Whatever you like.
Now for the pasted instructions in case that link above is broken when you read this:
For Configure/Opening CakePHP CTP Files in Dreamweaver 3 files that you need to edit:-
C:\Program Files\(Adobe or Macromedia)\(Adobe )Dreamweaver(version like 8 or cs3)\configuration
Open up “Extensions.txt” and on the first line at the very end add THTML and CTP separated by commas, so the line should read:
,MASTER,THTML,CTP:All Documents
Similarly add these two extensions to the “:PHP Files” line.
PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files
Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or wordpad. Search for the line which has an id “PHP_MySQL” and add the THTML/CTP file extensions to both the “winfileextension” and “macfileextension” so the line should read:
winfileextension=“php,php3,php4,php5,thtml,ctp”
macfileextension=“php,php3,php4,php5,thtml,ctp”
The final file is another version of the “Extensions.txt” which is located in your “Documents and Settings” Folder in my case this is “C:\Documents and Settings(User_Name)\Application Data(Adobe or Macromedia)(Adobe )Dreamweaver(version like 8 or cs3)\configuration” just add the very same things you inserted earlier in “Extensions.txt” .
Modifying the Necessary Dreamweaver files
There are 3 files that you need to edit. The first two are located in the folder that you have installed Dreamweaver, in my case It is in ‘C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration’.
C:\Program Files\Macromedia\Dreamweaver 8\Configuration in case,if you are using Macromedia Dreamweaver 8
Open up ‘Extensions.txt’ and on the first line at the very end add THTML and CTP separated by commas,
so the line should read
,MASTER,THTML,CTP:All Documents
Similarly add these two extensions to the ‘:PHP Files’ line.
PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files
Next open the ‘DocumentTypes’ folder and edit the ‘MMDocumentTypes.xml’ file, just open it up using notepad/wordpad. Search for the line which has an id ‘PHP_MySQL’ and add the THTML/CTP file extensions to both the ‘winfileextension’ and ‘macfileextension’ so the line should read.
winfileextension=”php,php3,php4,php5,thtml,ctp”
macfileextension=”php,php3,php4,php5,thtml,ctp”
The final file is another version of the ‘Extensions.txt’ which is located in your ‘Documents and Settings’ Folder in my case this is ‘C:\Documents and Settings\Farid\Application Data\Adobe\Adobe Dreamweaver CS3\Configuration’ just add the very same things you inserted earlier.
If you are using Macromedia Dreamweaver 8, you need not to do this edit.
for windows 7 you need to edit one more configuration file:
C:\Users\AppData\Roaming\Adobe\Dreamweaver CS3\en_US\Configuration\extensions.txt
edit just like the other extension files.