I am using Code::Blocks 17.12 on Windows, and would like to create a folder to house the header files.
By default, when I create a console project, a Sources folder is created virtually (there isn't such a folder on disk, but it appears as such in Code::Blocks in the Management window's Project tab.
How do I create additional folders? When I right-click on the project (in the Management window's Project tab), I don't see a way to create a folder.
After Googling around for a bit, I came across this post, although dated 2009:
http://forums.codeblocks.org/index.php?topic=11365.0
Combining that answer with mine, these are the steps for creating a folder in Code::Blocks:
On your disk (i.e. outside of Code::Blocks), create your folders and add any existing files that you need to it. In my case I created an Includes folder and copied existing .h files into it.
Right-click on the project name in the Management windows' Project tab, and choose Project tree. Tick the Display folders as disk option.
Right-click on the project name again, and choose Add files recursively....
A dialog box appears. Navigate to your subfolder and click OK. Another dialog box appears asking you to select the files to add to the project. By default all the files in the subfolder are selected, so click OK.
The folder will appear in Code::Blocks, under a folder called Headers.
You will also need to add the folder(s) that you created outside of Code::Blocks to the compiler's search directories by clicking on Settings -> Compiler.... Then click on the Search directories tab, select the Compiler tab, then click Add.
In the dialog box that appears, click on the folder icon and navigate to your folder. Then click OK.
Related
How can I change the default Open File... directory in Netbeans 8.2 for Java SE\ME\EE?
I've edited my projectui.properties file line projectsFolder=DIRECTORY but that only works for projects. I am trying to open individual files without opening the entire project.
File was found (Windows) under "C:\Users\MYNAME\AppData\Roaming\NetBeans\8.2\config\Preferences\org\netbeans\modules"
Unlike setting the default project directory in NetBeans, you can't modify the default Open File... directory because there is no such "default directory" to change.
NetBeans behavior when you select Open File... from the File menu (on Windows 10 at least) is as follows:
[1] On the first occasion within a NetBeans session the Documents icon will be pre-selected in the Open dialog window, and your Documents directory will be opened. That's just the way NetBeans works, and cannot be modified. Although you can change the Documents folder that will be opened, you probably shouldn't. See below for details**.
[2] Within the Open dialog you can obviously navigate to any alternative folder to open a file. Thereafter, within that NetBeans session only, that alternative folder will be opened by default on the subsequent File -> Open File... selections, until an alternative directory is selected.
~~~~~
** To change the Documents folder in Windows (which will also change the folder that NetBeans opens on the initial use of File -> Open File..):
In Windows File Explorer select Desktop -> This PC -> Documents and right-click.
Select Properties from the drop down menu, and then select the Location tab in the Document Properties window.
Enter the name of the new folder to be used as the Documents folder and click OK.
Restart NetBeans, select File-> Open File... and the folder NetBeans opens will now be the one you specified in the previous step.
That may appear to have the desired affect, but other Windows applications also use the Documents folder, and may depend on files in that folder, so it shouldn't really be changed without good reason. If you really need to open files in NetBeans that are not within any project the cleanest approach would be to place such files in the Documents folder if possible.
One solution would be to move the NetBeansProjects in the Documents folder mentioned above to the desired place and to place a permanent symlink to the desired folder. Instructions for latter referenced here https://superuser.com/questions/1020821/how-to-create-a-symbolic-link-on-windows-10
Watch out if the secondary location could be temporary (like a network drive) that it's always in place before you launch Netbeans.
Creating a new website allows you to choose the path of the website files. However, the project file itself is created under the Projects folder. How can I create it somewhere else? I would expect some field for that in the dialog, but can't find it.
(This is not a web-application.)
At least in VS 2013, there is no project file associated with web sites. There is only the .SLN file. The .SLN file is merely a simple container for all of the different websites and projects that you would like opened simultaneously in your Solution Explorer, so the location of the .SLN file on disk is not really important.
Still, if you would like to control its location, you cannot do so through the New Website dialog. You'll have to manually move the .SLN file after you've already created the website. And in doing so, you would also have to open up the .SLN in a text editor and manually adjust all the relative paths to point to your website location.
When I update some files on my Sourceforge projects, the last uploaded file is always automatically offered on the download page as the "Looking for the latest version? Download..." and it becomes the default download from the project's front page.
My problem is that, on one project, there is the main source tarball but I also have some optional code components that I want to add to the site. Whenever I add such optional component they become the "latest verison" of my app.
Is there a way to force a file to become the "latest version" of the app so that it stays the default download on the main project page?
If the wrong file is linked to Download button, you can change it by:
Click Files
Browse through the folders until you find your preferred file
Click the "i" icon at the right of the file's entry in the table of files
In the pop-up window, under the Default download for: heading, click Select All
Press Save
Give it a few minutes, refresh your project page and check the link
The question says it all: where is the group and where is the "physical" folder?
So, to get the Resources group back, do this:
Right-click on your project icon in the navigation view on the left (blue icon).
Rename the group to "Resources."
That's it.
But what if you also want the Resources folder on your disk? Easy:
Open Finder.
Navigate to your project folder and create a new folder on the same level of the .xcodeproj directory, named "Resources".
Back in Xcode, select the Resources group and activate the "Utilities" view (all the way in the top right corner next to the Organizer icon).
Under the "Location" drop down box you see a small white-ish icon: Click it: A dialog called "Choose a directory this group represents" will come up.
Choose the Resources folder you created in step 2.
That's it. Now you can drag resources into the Resources group in Xcode and they will end up in the Resources folder on your disk.
I had the same problem by accidentally deleting the folder in the project.
For my environment (XCode v11), right click on the project in the project navigator and select "Add Files to ...
This will bring up your current project folder (if not, simply navigate to that directory) and then select the Assets.xcassets folder and click Add.
This will bring the assets folder back to your project.
in my application when i type sqlconnection it is not showing any intellisence, i added the namespace System.Data.Sqlclient not only sqlconnection even i am not getting Page calss can u help me.
actually i am sharing this application from my company server.
in our company previously there was .net 2.0 frame work when this project was developed(one year back).
yesterday our company installed 3.0 .net frame work is this any problem for previous project which are developed in 2.0 how can i go through this problem
You should check if your intellisense works at all first. You can try :-
1) Start your visual studio using the following :-
devenv.exe /resetskippkgs
2) Go to Tools > Option > Text Editor > All Languages . Make sure all the checkbox related to "Statement Completion" are "checked" (not just filled).
3) Close Visual Studio, delete the .suo (user option file) which is located at teh same directory as your solution file. Note that that file might be hidden. Open Visual Studio again and check for intellisense.
EDIT :- To see the hidden .suo file (or any other hidden files), follow below steps:-
1.Open My Computer.
2.From the Tools menu, choose Folder Options....
3.Click on the View tab in the Folder Options window.
4.In the Advanced settings: text area, locate the Hidden files and folders category.
Note: The Hidden files and folders category should be viewable at the bottom of the Advanced settings: text area without scrolling down. You'll see two options under the folder.
5.Choose the Show hidden files and folders radio button under the Hidden files and folders category.
6.Click OK at the bottom of the Folder Options window.