I have a CSV file including some coordinates in degrees. I need to have these coordinates in the meter unit. I tried to add it as a shapefile in QGIS, then I saved the features and set a projected CRS. Afterward, I read this new shapefile into QGIS but still, the longitude and latitude values are in degrees. How can I convert the longitude and latitude values to meters?
Attributes are static. They do not update automatically (Except in virtual layers or fields). You can use fieldcalculator in QGIS on your shapefile with these expressions to update your fields:
x(transform($geometry, layer_property(@layer_name, 'crs'),'EPSG:3006'))
y(transform($geometry, layer_property(@layer_name, 'crs'),'EPSG:3006'))
This expression does not require to reproject your layer first. It will detect your source CRS and transform the coordinates to
EPSG:3006. Note that you can not change values of a CSV.
I suggest you use a Add geometry attributes tool to calculate coordinates in meters (no reprojection required).