Geek Dashboard

How-To's, Smartphones, News and Reviews

  • Home
  • News
  • Smartphones
    • Android
    • iOS
  • Computers
    • Windows
    • macOS
  • Internet
  • Reviews
You are at Home » Computer

How to Open, Edit and Save .CFG Files in Windows Computer

Last Updated on December 31, 2020 by Anmol Mishra Leave a Comment

Have you ever encountered a .cfg file while wandering in different places on your Windows computer? A .cfg or .config file is a configuration file that stores settings for various applications, games, and software installed on your computer. While in most cases you don’t need any special software or tool to open CFG files, it can be easily opened in any text editor.

What Are CFG Files?

The .cfg or .config extension stands for configuration and various software stores their settings with this extension. Most CFG files are plain text files but in some cases, they can be in a specific format depending on their corresponding software code structure.

For example, the project IGI 2 contains a file by the name networkconfig.cfg, which contains settings related to network configuration.

IGI 2 networkconfig.cfg file

While deleting or editing this particular file doesn’t affect the game performance but in some cases .cfg files store execution codes as well and deleting them can make those programs inoperable. In most cases, these instructions are commented on at the start of those files.

The one example of this case is file handling.cfg of GTA Vice City 2010 where it is mentioned: “Tweak at your own risk”. So before editing a .cfg file, you should know what you are doing or it may make the application crash when you open it next time.

Also Read: How to Convert WebM Videos to MP4 Format on Mac and Windows

How to Open CFG Files

While there are various programs and applications which use .cfg files for storing their data, Microsoft Office, Visual Studio, Project IGI, GTA Vice City, Bluestacks, and Celestia are some popular names using these types of files. As mentioned earlier, you don’t need any special application or tool to open CFG files, you can open or view them with Notepad (the default text editor of Windows OS).

Some .cgf files contain data in WML programming language like from the game The Battle for Wesnoth. While network configuration files like networkconfig.cfg of IGI 2 store information related to server connection, IP address, and passwords. Normally, users don’t need to access these files as these files are used by those programs internally for running smoothly.

To open CFG files, follow these simple mentioned below. We are taking the network configuration file of IGI 2 for the demonstration.

  1. Locate the file you need to open.
  2. Right-click on .CFG file and select “Open with” option.
  3. Choose Notepad from the list.
  4. Enable “Always use this app to open .cfg files” (optional).
  5. Click on OK to open the .CFG file.

Notepad selection for cfg files

How to Edit and Save CFG Files

While old school Notepad works fine if you want to just view the CFG files. But for editing the .CFG files correctly, we recommend using Notepad++ for more robust viewing and editing. It offers a variety of features like color and syntax highlighting that helps you editing the CFG files without syntax errors. You can also use Notepad++ to save the CFG file to any format you like.

However, there isn’t any important reason for you to change the configuration of these files as applications need these files in CFG format for normal operations. Otherwise, there isn’t any other way by which these programs/ applications can find those files. In that case, most probably programs will use their default setting and will create those files again.

About Notepad++, we can say that it is an advanced version of Notepad with features like tabbed editing, Autosave, simultaneous editing, and multiple language support. Using Notepad++ we can convert files from .cfg/.config to XML, JSON, HTML and more. While most CFG files can be edited using Notepad++ but few .cfg files like celestia.cfg need a special tool for editing. In the case of Celestia, it will need a Celesia Config Manager.

Follow the steps below to edit a CFG file using Notepad++ 

  1. Download and install the latest version of Notepad++ software on your computer.
  2. Locate the CFG file and create a copy of it for backup (Optional).
  3. Now right-click on the original CFG file.
  4. Choose the “Open With” option.
  5. Select Notepad++ from the list of installed software.
    Notepad++ selection to Open CFG files
  6. Edit the CFG file as per your requirements.
  7. Click on the File menu in the upper left corner.Notepad++ file menu
  8. Select the Save option to save the file with same .CFG extension.
  9. If you wish to change the extension, click on the “Save as” option, and choose the extension from the drop-down list. Save as option in Notepad ++

Additional Information About Configuration Files

Changing the file extension will never alter the file contents. For example, if you change the .cfg extension to .txt format, you can still open it with any text editor or IDE’s. Though the file contents remain the same, the way the software process the file is different.

A software can store their application settings in any file format they like. Ultimately the corresponding software knows how they have stored the information and how to parse that file to retrieve the information.

Also Read: How to Generate and Extract APK Files from Android App Bundle (AAB)

Let’s have a look at a few other file extensions which can be used for storing configuration files.

  • In most of the cases, configuration files use CNF or .cf extension.
  • macOS use PLIST while Windows uses the INI extension.
  • JSON, PROPERTIES, and CONF are some other extensions.

There are different types of extensions in which programs and applications save their data and the .CFG extension is one of the popular formats. Other extensions may need special tools to open them but to open CFG files you just need a simple text editor like Notepad, WordPad, or Notepad++.

#CFG#macOS#Notepad#Windows
Posted inComputer

Spread the Word!

Avatar for Anmol Mishra

Anmol Mishra Facebook Twitter Instagram

Anmol is a writer and technology buff. He loves to research and learn about new gadgets and technology.

Related articles

Reviews

Commander One 2.0: Advanced File Manager for Mac with Exciting New Features

Update Version of Commander One
Internet

8 Best Custom PC Builder Websites With Great Support, Warranty, and Price

Best Custom PC Building Websites
Computer

How to Redirect and Open Windows 11 Widget Links in Google Chrome

How to Open Windows 11 Widget Links in Google Chrome

Comment Policy:

The comments section is aimed to help our readers in case of any questions or you can even appreciate us for our hard work. Every comment is strictly moderated before approving it.

Your name and comment will be visible to the public. Never share your personal information in the comments section.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Over 1,30,286+ Followers

Join to get latest updates from Geek Dashboard

Facebook Twitter Telegram Pinterest YouTube Instagram

Recently Published

  1. Lenovo Yoga 9i 2-in-1 Laptop with 13th Gen Intel Core i7 Launched in India

  2. Lenovo Tab P11 5G Launched with 11-inch 2K Display and Snapdragon 750G SoC in India

  3. How To Select All Photos on iPhone and iPad Quickly

  4. iQOO 11 5G with Snapdragon 8 Gen 2 SoC and 120W Fast Charging Launched in India

  5. Realme 10 Officially Launched with 90Hz AMOLED Display and Dual Cameras in India

Geek Dashboard Placeholder

Download the apps and never miss a story from us

We put a lot effort and resources in writing our articles and we believe it is our responsibility to satisfy your tech hunger. We will keep you filled forever!

  • Get Geek Dashboard App from Google Play
  • Get Geek Dashboard App from Chrome Web Store
Geek Dashboard Logo

At Geek Dashboard, we are dedicated to bringing you the latest and greatest in technology news, reviews, and how-to guides. From smartphones to laptops, and everything in between, we've got you covered.

Got a Tip? Write In tip@geekdashboard.com

© 2012 - 2023 · Geek Dashboard, product of ikva eSolutions

Blog Advertise About Jobs Contact Privacy Policy Write For Us T&C Office Setup

No dogs were injured while working on this website because we love them