Arduino Settings and Preferences Settings

In this section you will many things including preferences settings and Arduino IDE guided tour.

If you already know about these, click here for first Arduino Program or code


Go to the preference under file or press shortcut key “ctrl+,” (ctrl + Quotation mark), there you will find many useful options like

  • Changing font size 16, 24 etc.
  • You can tick Display line numbers, this will make visible number of lines in-front of each statement
  • Tick Verify code after upload
  • Tick Update sketch files to new extension on save
  • Tick Save when verifying or uploading
  • Additional board manager URls: this is used to install additional boards like ESP8266, nodeMcu, because arduino IDE is compatible for arduino boards, but we can make it compatible for different boards but it is not our main concern for now.
Arduino Preferences Settings
Arduino Preferences Window


To save the work you did in sketch click save button shown in diagram. The shortcut key to for this is “ctrl+ s”


Click to the file in the top-left of the window, there you will find “save”options, just click and save the sketch.

Dollar sign in Arduino Sketch
Dollar sign in Arduino Sketch

This dollar sign in sketch shows the code is not saved. When you press “ctrl + s” then this sign disappears.

Save the file with some name.


Verify means compiling the code we written to check any syntax errors. So we can write code in the correct manner which can be understood by compiler. To verify click verify button (shown in fig) or go to Verify/Compile under Sketch or press shortcut key “ctrl + r” to verify or compile.

After compiling a byte code/hex file generated, hex file means binary file for the code. Because all the controllers can understands only binary language (language of 0 and 1).

Compiler converts high level programming language to byte code.

Which compiler is used by Arduino?

First, Arduino environment performs some pre-processing to turn the code written by us into C++ program, and then arduino compiler “avr-gcc” turns the human readable code in machine readable instructions.

Arduino Upper window


After compiling as we wrote the code correctly. Now we will upload this program to the controller board (Arduino board).

Before clicking on upload button do check three things that are

Click on tools

1. Select board “Arduino/Genuino Uno”

Board - Arduino Genuino Uno
Board – Arduino Genuino Uno

2. Port “COM17 (Arduino/Genuino Uno)” you may have different like COM6 or other. COM refers to communication port, it will be selected by PC itself, we just need to check it right.


Port Com
Port COM

If port is not visible this may be because driver is not properly installed, loose connection, or cable/arduino damaged. If driver is not properly installed follow the steps of driver installation explain above.

3. Now select the Programmer as “USBasp” or “AVRISP mkll”

Then click on upload button (shown in fig)or go to Upload under Sketch or simply press shortcut key that is “ctrl + u” to upload the code in Arduino.

Arduino Programmer
Arduino Programmer


Comments are lines in the program which don’t get executed (ignore by the compiler) and that are used to inform programmer or someone who reads the program about blocks logics. 

Let suppose we have a big programming code and we do not want to get confuse in future, which block is used for what logic.

We can use “//comment” for single line comments and /*comment 1
comment 2 comment n*/
for multiple line comment.


void setup() {
  // Sets pin 13 as OUTPUT
  pinMode(13, OUTPUT);
void loop() {
  /* Sets the pin 13 HIGH
    means +5 V
  digitalWrite(13, HIGH);


To open a new sketch/file (blank default window of arduino) click on “new” button shown in diagram. The shortcut key to open a new sketch is “ctrl+n”


Click to the file in the top-left of the window, there you will find “new” options.


To open a saved file or to open command window(dialog box) click open’s button shown in diagram. The shortcut key to for this is “ctrl+ o”


Click to the file in the top-left of the window, there you will find “open & open recent” options, you can use either.


You can get some sample codes for reference from the Examples under File, these codes are present here because these libraries are already installed for Arduino, and whenever you include other libraries you will definitely find their example code here as well.

Examples in Arduino
File – Examples in Arduino


To include a new library you need to download the .zip file of the library from the available source generally internet. Suppose,, save the file in location you remember like D/my folder/library.

Now go to the Add .ZIP Library under Include Library under Sketch, a dialog box appears browse the location D/my folder/library select and click open. Done!

How to Include Library in Arduino
Include Library in Arduino


Sometimes when we write code spaces are countless and program looks like mesh of statement, for this Arduino IDE gives us an advantage of auto formatting of code under Tools or use shortcut key “ctrl + t”, this will arrange the code in a proper manner.


In serial monitor window we can send and/or receive data serially from the serially communicating device. For example, some data is serially sent from the controller to a display device (smart phones, screens). We will later discuss this in our upcoming chapters of communication.

Click to the top right icon (see figure) or go to Serial Monitor under Tools or press shortcut key “ctrl + shift + m” for serial monitor.


As in serial monitor we can see data in character form, while in serial plotter we can see that serial data in graphical form. For serial plotter go to Serial Plotter under Tools or press shortcut key “ctrl+ shift + l” for serial plotter.

Read Next: Arduino IDE Installation

If you have Arduino IDE already installed, click here for first Arduino Program or code

preferences settings, how to include library in arduino, preferences settings, how to include library in arduino, preferences settings, how to include library in arduino, preferences settings, how to include library in arduino

Leave a Reply

Notify of

Arduino Tutorials with Basic Electronics: CONTENT

Translate »